v0.6: Sign in with GitHub (device flow) #5
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: Release | |
| # Pushing a v* tag builds the Windows installer + portable exe and publishes a | |
| # GitHub release with them. latest.yml (+ blockmap) is what electron-updater | |
| # reads to self-update installed copies — it must ship with every release. | |
| on: | |
| push: | |
| tags: ['v*'] | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install dependencies | |
| shell: bash | |
| run: | | |
| npm ci | |
| (cd desktop && npm ci) | |
| (cd desktop/renderer && npm ci) | |
| - name: Build | |
| run: npm run build | |
| - name: Package | |
| shell: bash | |
| run: cd desktop && npx electron-builder --win --publish never | |
| - name: Publish release | |
| shell: bash | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| gh release create "${{ github.ref_name }}" \ | |
| desktop/release/*.exe \ | |
| desktop/release/*.blockmap \ | |
| desktop/release/latest.yml \ | |
| --title "${{ github.ref_name }}" \ | |
| --generate-notes |