Skip to content

Commit db2936a

Browse files
authored
CI: build on tags (v1.4.8)
Build workflow triggers on tag pushes and uses npm install to tolerate lockfile drift.
1 parent 3145449 commit db2936a

1 file changed

Lines changed: 95 additions & 95 deletions

File tree

.github/workflows/build.yml

Lines changed: 95 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,95 @@
1-
name: Build Desktop Apps
2-
3-
on:
4-
push:
5-
tags:
6-
- 'v*'
7-
workflow_dispatch:
8-
9-
permissions:
10-
contents: write
11-
12-
jobs:
13-
build-windows:
14-
runs-on: windows-latest
15-
steps:
16-
- uses: actions/checkout@v4
17-
18-
- name: Setup Node.js
19-
uses: actions/setup-node@v4
20-
with:
21-
node-version: '18'
22-
cache: 'npm'
23-
24-
- name: Install dependencies
25-
run: npm ci
26-
27-
- name: Build Windows
28-
run: npm run build:win -- --publish never
29-
env:
30-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
32-
- name: Upload Windows artifacts
33-
uses: actions/upload-artifact@v4
34-
with:
35-
name: windows-installer
36-
path: |
37-
dist/**/*.exe
38-
dist/**/*.msi
39-
dist/**/*.zip
40-
41-
build-macos:
42-
runs-on: macos-latest
43-
steps:
44-
- uses: actions/checkout@v4
45-
46-
- name: Setup Node.js
47-
uses: actions/setup-node@v4
48-
with:
49-
node-version: '18'
50-
cache: 'npm'
51-
52-
- name: Install dependencies
53-
run: npm ci
54-
55-
- name: Build macOS
56-
run: npm run build:mac
57-
env:
58-
CSC_IDENTITY_AUTO_DISCOVERY: false
59-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60-
61-
- name: Upload macOS artifacts
62-
uses: actions/upload-artifact@v4
63-
with:
64-
name: macos-installer
65-
path: |
66-
dist/**/*.dmg
67-
dist/**/*.zip
68-
69-
build-linux:
70-
runs-on: ubuntu-latest
71-
steps:
72-
- uses: actions/checkout@v4
73-
74-
- name: Setup Node.js
75-
uses: actions/setup-node@v4
76-
with:
77-
node-version: '18'
78-
cache: 'npm'
79-
80-
- name: Install dependencies
81-
run: npm ci
82-
83-
- name: Build Linux
84-
run: npm run build:linux
85-
env:
86-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87-
88-
- name: Upload Linux artifacts
89-
uses: actions/upload-artifact@v4
90-
with:
91-
name: linux-installer
92-
path: |
93-
dist/**/*.AppImage
94-
dist/**/*.deb
95-
dist/**/*.rpm
1+
name: Build Desktop Apps
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
build-windows:
14+
runs-on: windows-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '20'
22+
cache: 'npm'
23+
24+
- name: Install dependencies
25+
run: npm install
26+
27+
- name: Build Windows
28+
run: npm run build:win
29+
env:
30+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Upload Windows artifacts
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: windows-installer
36+
path: |
37+
dist/**/*.exe
38+
dist/**/*.msi
39+
dist/**/*.zip
40+
41+
build-macos:
42+
runs-on: macos-latest
43+
steps:
44+
- uses: actions/checkout@v4
45+
46+
- name: Setup Node.js
47+
uses: actions/setup-node@v4
48+
with:
49+
node-version: '20'
50+
cache: 'npm'
51+
52+
- name: Install dependencies
53+
run: npm install
54+
55+
- name: Build macOS
56+
run: npm run build:mac
57+
env:
58+
CSC_IDENTITY_AUTO_DISCOVERY: false
59+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
61+
- name: Upload macOS artifacts
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: macos-installer
65+
path: |
66+
dist/**/*.dmg
67+
dist/**/*.zip
68+
69+
build-linux:
70+
runs-on: ubuntu-latest
71+
steps:
72+
- uses: actions/checkout@v4
73+
74+
- name: Setup Node.js
75+
uses: actions/setup-node@v4
76+
with:
77+
node-version: '20'
78+
cache: 'npm'
79+
80+
- name: Install dependencies
81+
run: npm install
82+
83+
- name: Build Linux
84+
run: npm run build:linux
85+
env:
86+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87+
88+
- name: Upload Linux artifacts
89+
uses: actions/upload-artifact@v4
90+
with:
91+
name: linux-installer
92+
path: |
93+
dist/**/*.AppImage
94+
dist/**/*.deb
95+
dist/**/*.rpm

0 commit comments

Comments
 (0)