Skip to content

Commit

Permalink
Try 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 4548d2d commit 845bcc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
shell: cmd
run: |
cd editor
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
dotnet publish sth1edwv.sln --configuration Release --output foo /p:Version=0.${{github.run_number}}+${{github.sha}} --runtime win-x64 -p:PublishSingleFile=true --no-self-contained
7z a program.zip .\foo\*
- name: Make artifact
Expand All @@ -33,7 +33,7 @@ jobs:
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{secrets.GITHUB_TOKEN}}"
automatic_release_tag: "v0.${{env.GITHUB_RUN_NUMBER}}"
automatic_release_tag: "v0.${{github.run_number}}"
prerelease: false
title: "Automatic build #${{env.GITHUB_RUN_NUMBER}}"
title: "Automatic build #${{github.run_number}}"
files: editor/program.zip

0 comments on commit 845bcc5

Please sign in to comment.