-
Notifications
You must be signed in to change notification settings - Fork 23
40 lines (39 loc) · 1.13 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
name: Build release
on:
push:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Install ubuntu requirements
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get -qq update
sudo apt-get install -y libx11-dev libxss-dev icnsutils graphicsmagick libappindicator1 libxtst-dev
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Specify MSVS version
if: ${{ matrix.os == 'windows-latest' }}
shell: powershell
run: |
echo "GYP_MSVS_VERSION=2022" >> $env:GITHUB_ENV
# - name: Patch node-gyp
# if: ${{ matrix.os == 'windows-latest' }}
# shell: powershell
# run: |
# npm config set msvs_version 2022
- run: npm ci
- name: Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
run: npm run release