- 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.
Showing the changes to .github (1 of 1 file). Show all
Unified · Split
| @@ -7,7 +7,7 @@ on: · 6 unmodified lines | ||
| 7 | 7 | workflow_dispatch: |
| 8 | 8 | |
| 9 | 9 | jobs: |
| 10 | − package: | |
| 10 | + package-mac: | |
| 11 | 11 | runs-on: macos-latest |
| 12 | 12 | |
| 13 | 13 | steps: |
| @@ -31,7 +31,7 @@ jobs: · 17 unmodified lines | ||
| 31 | 31 | |
| 32 | 32 | - name: Package macOS |
| 33 | 33 | env: |
| 34 | − CSC_LINK: ${{ secrets.CSC_LINK }} | |
| 34 | + CSC_LINK: ${{ secrets.MAC_CERTS }} | |
| 35 | 35 | CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} |
| 36 | 36 | APPLE_ID: ${{ secrets.APPLE_ID }} |
| 37 | 37 | APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} |
| @@ -44,3 +44,35 @@ jobs: · 6 unmodified lines | ||
| 44 | 44 | name: release-macos |
| 45 | 45 | path: release/** |
| 46 | 46 | 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 | |