Release Full #33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| workflow_dispatch: # Manual trigger | |
| jobs: | |
| release-linux: | |
| name: Release Linux packages | |
| runs-on: ubuntu-latest | |
| container: | |
| image: electronuserland/builder | |
| env: | |
| TAR_OPTIONS: "--format=ustar" | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| steps: | |
| - uses: "actions/checkout@v1" | |
| - uses: "actions/setup-node@v4" | |
| with: | |
| node-version: '22.17.0' | |
| - run: npm install | |
| - name: Release Linux | |
| run: npm run build:linux -- -p always | |
| release-win: | |
| name: Release Windows packages | |
| runs-on: windows-latest | |
| steps: | |
| - name: Preserve $HOME set in the container | |
| run: echo HOME=/root >> "$GITHUB_ENV" | |
| - uses: "actions/checkout@v1" | |
| - uses: "actions/setup-node@v4" | |
| with: | |
| node-version: '22.17.0' | |
| - run: npm install | |
| - name: Release Windows | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| run: npm run build && npx electron-builder --win -p always | |
| release-macos-x64: | |
| name: Release macOS x64 packages | |
| runs-on: macos-latest | |
| steps: | |
| - uses: "actions/checkout@v1" | |
| - uses: "actions/setup-node@v4" | |
| with: | |
| node-version: '22.17.0' | |
| - run: npm install --arch=x64 | |
| - name: Create certificate.p12 | |
| run: echo "$encoded_p12" | base64 --decode > certificate.p12 | |
| env: | |
| encoded_p12: ${{ secrets.CSC_BASE64 }} | |
| - name: Release macOS x64 | |
| env: | |
| APPLE_ID: ${{ secrets.APPLE_ID }} | |
| APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} | |
| APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} | |
| CSC_LINK: "./certificate.p12" | |
| CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| run: npm run build:mac -- --x64 -p always | |
| - name: Upload latest-mac.yml artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: latest-mac-x64-yml | |
| path: dist/latest-mac.yml | |
| release-macos-arm64: | |
| name: Release macOS arm64 packages | |
| runs-on: macos-14 | |
| steps: | |
| - uses: "actions/checkout@v1" | |
| - uses: "actions/setup-node@v4" | |
| with: | |
| node-version: '22.17.0' | |
| - run: npm install --arch=arm64 | |
| - name: Create certificate.p12 | |
| run: echo "$encoded_p12" | base64 --decode > certificate.p12 | |
| env: | |
| encoded_p12: ${{ secrets.CSC_BASE64 }} | |
| - name: Release macOS arm64 | |
| env: | |
| APPLE_ID: ${{ secrets.APPLE_ID }} | |
| APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} | |
| APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} | |
| CSC_LINK: "./certificate.p12" | |
| CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| run: npm run build:mac -- --arm64 -p always | |
| - name: Upload latest-mac.yml artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: latest-mac-arm64-yml | |
| path: dist/latest-mac.yml |