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