-
-
Notifications
You must be signed in to change notification settings - Fork 99
55 lines (48 loc) · 1.42 KB
/
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
name: Publish release
on:
push:
tags-ignore: ['*beta*']
env:
WEBCORD_BUILD: RELEASE
permissions:
contents: write
jobs:
publish:
strategy:
matrix:
include:
- name: Linux
runner: ubuntu-20.04
arch: x64,arm64,armv7l
- name: Windows
runner: windows-latest
arch: x64,arm64,ia32
- name: macOS
runner: macos-latest
arch: x64,arm64 #,universal
name: ${{ matrix.name }} (${{ matrix.arch }})
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: latest
cache: npm
- name: Install dependencies (NPM${{ matrix.name == 'macOS' && '+PIP' || '' }})
run: ${{ matrix.name == 'macOS' && 'python -m pip install setuptools &&' || '' }} npm ci
- name: TSC cache
uses: actions/cache@v3
with:
key: tsc-${{ matrix.build }}
path: |
app
cache/tsc.json
- name: Publish distributables (${{ matrix.arch}})
uses: nick-fields/retry@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
retry_on: error
max_attempts: ${{ matrix.name == 'Windows' && 6 || 3 }}
timeout_minutes: ${{ matrix.name == 'Windows' && 15 || 10 }}
command: npm run publish -- -a ${{ matrix.arch }}