ci: fix workflow step order

This commit is contained in:
2025-10-20 01:50:42 +11:00
parent 6fc5116e0e
commit b7222c0b07

View File

@@ -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