-
-
Notifications
You must be signed in to change notification settings - Fork 23
36 lines (30 loc) · 934 Bytes
/
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
name: Build/release
on: workflow_dispatch
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: latest
- name: Build and release with electron-builder
run: |
export GH_TOKEN=${{ secrets.GITHUB_TOKEN }}
yarn
if [ "$RUNNER_OS" == "Linux" ]; then
yarn dist -c.snap.publish=github
elif [ "$RUNNER_OS" == "Windows" ]; then
yarn dist
elif [ "$RUNNER_OS" == "macOS" ]; then
yarn dist -m --x64 --arm64
else
echo "$RUNNER_OS not supported"
exit 1
fi
shell: bash