Skip to content

Commit d9e92a8

Browse files
author
arch
committed
add installer version to release
1 parent a5ae40c commit d9e92a8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release_windows_installer.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ jobs:
2828
conda info
2929
conda env export
3030
- name: Get Version
31-
id: get_version
32-
uses: battila7/get-version-action@v2
31+
shell: bash -l {0}
32+
run: |
33+
echo "INSTALLER_VERSION=$(grep '^VERSION' ./contrib/Installer/mtfg-ofs-extension-installer.py | cut -d '=' -f 2 | sed 's/\"//g' | sed 's/ //g')" >> $GITHUB_ENV
34+
- name: Print Version
35+
run: echo $INSTALLER_VERSION
3336
- name: Build Installer
3437
shell: bash -l {0}
3538
working-directory: ./contrib/Installer
@@ -40,7 +43,7 @@ jobs:
4043
with:
4144
repo_token: ${{ secrets.GITHUB_TOKEN }}
4245
file: ./contrib/Installer/dist/mtfg-ofs-extension-installer.exe
43-
asset_name: mtfg-ofs-extension-installer.exe
46+
asset_name: mtfg-ofs-extension-installer-${{env.INSTALLER_VERSION}}.exe
4447
tag: ${{ github.ref }}
4548
overwrite: true
4649

0 commit comments

Comments
 (0)