Skip to content

Commit

Permalink
Added: Inject Version on Tag Builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 authored Jan 18, 2022
1 parent a1754ed commit acf7325
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ jobs:
- name: Publish
run: .\source\Publish.ps1

- name: Inject Version (on Tag)
if: env.IS_RELEASE == 'true'
run: |
echo "$env:RELEASE_TAG" > "version.txt"
Compress-Archive -update "version.txt" "$env:PUBLISH_RELEASE_PATH"
- name: Test
run: dotnet test -c Release ./source/Reloaded.Mod.Loader.Tests/Reloaded.Mod.Loader.Tests.csproj

Expand Down

0 comments on commit acf7325

Please sign in to comment.