From cef060c135b8fac1fb0c6018fade9688a22e887e Mon Sep 17 00:00:00 2001 From: Florian Loitsch Date: Thu, 10 Feb 2022 16:26:47 +0100 Subject: [PATCH] Trim the 'v' of the version. (#118) --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d921eb2..fc639334 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,9 +56,15 @@ jobs: run: | signtool sign /debug /n "Toitware ApS" /t http://timestamp.digicert.com/ $PWD/jag.exe powershell Compress-Archive -Force jag.exe jag.zip + - name: Version number + id: version + run: | + $versionV = "${{ github.event.release.tag_name }}" + $version = $versionV.Substring(1) + echo ::set-output name=version::$version - name: Build installer run: | - & tools\windows_installer\build.bat ${{ github.event.release.tag_name }} $PWD\build\windows\jag.exe $PWD\jag_installer.exe + & tools\windows_installer\build.bat ${{ steps.version.outputs.version }} $PWD\build\windows\jag.exe $PWD\jag_installer.exe signtool sign /debug /n "Toitware ApS" /t http://timestamp.digicert.com/ $PWD\jag_installer.exe move $PWD\jag_installer.exe build/windows/jag_installer.exe - name: Upload artifacts