Skip to content

Commit

Permalink
Switch to GITHUB_RUN_NUMBER
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-zhao committed Oct 6, 2024
1 parent a36430b commit 4548d2d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,11 @@ jobs:
with:
dotnet-version: '8.0.x'

- name: Build Number Generator
uses: einaregilsson/build-number@v3
with:
token: ${{secrets.GITHUB_TOKEN}}

- name: Build
shell: cmd
run: |
cd editor
dotnet publish sth1edwv.sln --configuration Release --output foo /p:Version=0.${{env.BUILD_NUMBER}}+${{github.sha}} --runtime win-x64 -p:PublishSingleFile=true --no-self-contained
dotnet publish sth1edwv.sln --configuration Release --output foo /p:Version=0.${{env.GITHUB_RUN_NUMBER}}+${{github.sha}} --runtime win-x64 -p:PublishSingleFile=true --no-self-contained
7z a program.zip .\foo\*
- name: Make artifact
Expand All @@ -38,7 +33,7 @@ jobs:
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{secrets.GITHUB_TOKEN}}"
automatic_release_tag: "v0.${{env.BUILD_NUMBER}}"
automatic_release_tag: "v0.${{env.GITHUB_RUN_NUMBER}}"
prerelease: false
title: "Automatic build #${{env.BUILD_NUMBER}}"
title: "Automatic build #${{env.GITHUB_RUN_NUMBER}}"
files: editor/program.zip

0 comments on commit 4548d2d

Please sign in to comment.