-
Notifications
You must be signed in to change notification settings - Fork 704
69 lines (59 loc) · 1.75 KB
/
build-release.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
name: Build release
on:
push:
branches:
- master
- develop
tags:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Disable git core.autocrlf
run: git config --global core.autocrlf false
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node 20.14.0
uses: actions/setup-node@v4
with:
node-version: '20.14.0'
- name: Setup node_modules cache
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install package dependencies
run: yarn install
- name: Lint
run: yarn lint
- name: Test
run: yarn test
- name: Build app/
run: yarn build
env:
NODE_ENV: production
BUGSNAG_API_KEY: ${{ secrets.BUGSNAG_API_KEY }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
- uses: ./workspaces/desktop-release-action
with:
mac_csc_link: ${{ secrets.MAC_CSC_LINK }}
mac_csc_key_password: ${{ secrets.MAC_CSC_KEY_PASSWORD }}
mac_apple_id: ${{ secrets.APPLEID }}
mac_apple_id_password: ${{ secrets.APPLEIDPASS }}
mac_asc_provider: 'S6UPZG7ZR3'
win_csc_link: ${{ secrets.WIN_CSC_LINK }}
win_csc_key_password: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
github_token: ${{ secrets.GH_TOKEN }}