mirror of
https://github.com/litruv/picoGraph.git
synced 2026-07-24 02:36:04 +10:00
ci: auto version releases
This commit is contained in:
17
.github/workflows/windows-build.yml
vendored
17
.github/workflows/windows-build.yml
vendored
@@ -25,11 +25,22 @@ jobs:
|
||||
- name: Build/release Electron app
|
||||
uses: samuelmeuli/action-electron-builder@v1
|
||||
with:
|
||||
- name: Calculate release version
|
||||
id: version
|
||||
shell: pwsh
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN != '' && secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
$version = node scripts/ci/update-version.js
|
||||
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
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN != '' && secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
github_token: ${{ secrets.GH_TOKEN != '' && secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
release: true
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Upload installer artifact
|
||||
@@ -39,4 +50,4 @@ jobs:
|
||||
name: windows-installer
|
||||
path: |
|
||||
dist/**/*.exe
|
||||
dist/**/*.blockmap
|
||||
name: windows-installer-${{ steps.version.outputs.version }}
|
||||
|
||||
Reference in New Issue
Block a user