bugfix; release flow for electron-vite #2
Workflow file for this run
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: Build and Release Electron Apps | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: macos-latest | |
| command: npm run build && npx electron-builder --mac dmg zip --publish always | |
| - os: windows-latest | |
| command: npm run build && npx electron-builder --win nsis portable --publish always | |
| - os: ubuntu-latest | |
| command: npm run build && npx electron-builder --linux AppImage tar.gz --publish always | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build and publish artifacts | |
| run: ${{ matrix.command }} | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |