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
77 workflow_dispatch:
88
99 jobs:
10− package:
10+ package-mac:
1111 runs-on: macos-latest
1212
1313 steps:
@@ -31,7 +31,7 @@ jobs: · 17 unmodified lines
3131
3232 - name: Package macOS
3333 env:
34− CSC_LINK: ${{ secrets.CSC_LINK }}
34+ CSC_LINK: ${{ secrets.MAC_CERTS }}
3535 CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
3636 APPLE_ID: ${{ secrets.APPLE_ID }}
3737 APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
@@ -44,3 +44,35 @@ jobs: · 6 unmodified lines
4444 name: release-macos
4545 path: release/**
4646 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