Skip to content

Commit e40979d

Browse files
committed
Strip v from version tag for wix
1 parent 0b1d88f commit e40979d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ jobs:
120120
needs: get-version
121121
env:
122122
VERSION: ${{needs.get-version.outputs.version}}
123+
WIX_VERSION: ${{needs.get-version.outputs.version}}
123124
BUILD_INSTALLER: ${{ false }}
124125
steps:
125126
- name: Checkout repository
@@ -147,7 +148,9 @@ jobs:
147148
dest: ${{ env.GAME_EXECUTABLE_NAME }}_windows.zip
148149
- name: Create Installer
149150
if: ${{ env.BUILD_INSTALLER }}
150-
run: dotnet build -p:Version=${{ env.VERSION }} -c Release build/windows/installer/Installer.wixproj --output installer
151+
run: |
152+
echo "VERSION=${${{ env.VERSION }}#v}" >> $WIX_VERSION
153+
dotnet build -p:Version=$WIX_VERSION -c Release build/windows/installer/Installer.wixproj --output installer
151154
- name: Upload release
152155
uses: svenstaro/upload-release-action@v2
153156
with:

0 commit comments

Comments
 (0)