mirror of
https://github.com/litruv/picoGraph.git
synced 2026-07-24 02:36:04 +10:00
ci: fix workflow step order
This commit is contained in:
19
.github/workflows/windows-build.yml
vendored
19
.github/workflows/windows-build.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user