-
Notifications
You must be signed in to change notification settings - Fork 7
85 lines (73 loc) · 2.53 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Build
on: push
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 16
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Dependencies
run: yarn install --network-timeout 600000
- name: Build
uses: samuelmeuli/action-electron-builder@v1
with:
github_token: ${{ github.token }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
build_script_name: "build:github"
mac_certs: ${{ secrets.mac_certs }}
mac_certs_password: ${{ secrets.mac_certs_password }}
env:
REACT_APP_AUTH_USERPOOLID: ${{ secrets.auth_userpoolid }}
REACT_APP_AUTH_USERPOOLWEBCLIENTID: ${{ secrets.auth_userpoolwebclientid }}
REACT_APP_GIT_COMMIT_HASH: ${{ github.sha }}
REACT_APP_GOOGLECAL_CLIENT_ID: ${{ secrets.googlecal_client_id }}
REACT_APP_GOOGLECAL_CLIENT_SECRET: ${{ secrets.googlecal_client_secret }}
REACT_APP_TASKUNIFIER_CLIENT_ID: ${{ secrets.taskunifier_client_id }}
REACT_APP_TASKUNIFIER_CLIENT_SECRET: ${{ secrets.taskunifier_client_secret }}
REACT_APP_TOODLEDO_CLIENT_ID: ${{ secrets.toodledo_client_id }}
REACT_APP_TOODLEDO_CLIENT_SECRET: ${{ secrets.toodledo_client_secret }}
- name: Upload Build Artifacts
if: runner.os == 'Linux'
uses: actions/upload-artifact@v2
with:
name: taskunifier-app-build
path: build
- name: Upload Linux Artifacts
if: runner.os == 'Linux'
uses: actions/upload-artifact@v2
with:
name: taskunifier-app-linux
path: |
dist/latest-linux.yml
dist/*.AppImage
dist/*.tar.gz
dist/*.snap
- name: Upload Mac Artifacts
if: runner.os == 'macOS'
uses: actions/upload-artifact@v2
with:
name: taskunifier-app-mac
path: |
dist/latest-mac.yml
dist/*.dmg
dist/*.dmg.blockmap
- name: Upload Win Artifacts
if: runner.os == 'Windows'
uses: actions/upload-artifact@v2
with:
name: taskunifier-app-win
path: |
dist/latest.yml
dist/*.exe
dist/*.exe.blockmap