From acf7325453ba5b15ce9f11885579dc1112569efd Mon Sep 17 00:00:00 2001 From: Sewer Date: Tue, 18 Jan 2022 00:18:05 +0000 Subject: [PATCH] Added: Inject Version on Tag Builds --- .github/workflows/build-and-publish.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 5775020d..920dfec2 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -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