diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index fa64b8f..812235b 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -22,9 +22,9 @@ jobs: node-version: 20 cache: npm - - name: Build/release Electron app - uses: samuelmeuli/action-electron-builder@v1 - with: + - name: Install dependencies + run: npm ci + - name: Calculate release version id: version shell: pwsh @@ -36,18 +36,21 @@ jobs: if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } "version=$version" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append - github_token: ${{ secrets.GH_TOKEN != '' && secrets.GH_TOKEN || secrets.GITHUB_TOKEN }} - release: ${{ startsWith(github.ref, 'refs/tags/v') }} - args: --win --x64 --publish always + - name: Build/release Electron app + uses: samuelmeuli/action-electron-builder@v1 + with: github_token: ${{ secrets.GH_TOKEN != '' && secrets.GH_TOKEN || secrets.GITHUB_TOKEN }} release: true + args: --win --x64 --publish always + env: + GH_TOKEN: ${{ secrets.GH_TOKEN != '' && secrets.GH_TOKEN || secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload installer artifact if: always() uses: actions/upload-artifact@v4 with: - name: windows-installer + name: windows-installer-${{ steps.version.outputs.version }} path: | dist/**/*.exe - name: windows-installer-${{ steps.version.outputs.version }} + dist/**/*.blockmap