History

Update CI workflows for macOS and Windows packaging

- Renamed macOS packaging job to 'package-mac' and updated certificate secret reference. - Added new 'package-win' job for Windows builds, including steps for checkout, dependency installation, app building, and artifact uploading.

matt committed 9 months agov0.1.1

Commit f4dfd6c1 parent ed45a1d1 file · +34 −2Browse files

Showing the changes to .github (1 of 1 file). Show all

Unified · Split

.github/workflows/release.yml+34−2
@@ -7,7 +7,7 @@ on: · 6 unmodified lines
7 workflow_dispatch:7 workflow_dispatch:
8 8
9jobs:9jobs:
10 package:10 package-mac:
11 runs-on: macos-latest11 runs-on: macos-latest
12 12
13 steps:13 steps:
@@ -31,7 +31,7 @@ jobs: · 17 unmodified lines
31 31
32 - name: Package macOS32 - name: Package macOS
33 env:33 env:
34 CSC_LINK: ${{ secrets.CSC_LINK }}34 CSC_LINK: ${{ secrets.MAC_CERTS }}
35 CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}35 CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
36 APPLE_ID: ${{ secrets.APPLE_ID }}36 APPLE_ID: ${{ secrets.APPLE_ID }}
37 APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}37 APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
@@ -44,3 +44,35 @@ jobs: · 6 unmodified lines
44 name: release-macos44 name: release-macos
45 path: release/**45 path: release/**
46 if-no-files-found: error46 if-no-files-found: error
47
48 package-win:
49 runs-on: windows-latest
50
51 steps:
52 - name: Checkout
53 uses: actions/checkout@v4
54
55 - name: Setup pnpm
56 uses: pnpm/action-setup@v4
57
58 - name: Setup Node.js
59 uses: actions/setup-node@v4
60 with:
61 node-version: 20
62 cache: pnpm
63
64 - name: Install dependencies
65 run: pnpm install --no-frozen-lockfile
66
67 - name: Build app
68 run: pnpm build
69
70 - name: Package Windows
71 run: pnpm dist:win
72
73 - name: Upload artifacts
74 uses: actions/upload-artifact@v4
75 with:
76 name: release-windows
77 path: release/**
78 if-no-files-found: error