Skip to content

Commit e24c446

Browse files
author
arch
committed
try to set installer version
1 parent 3095ded commit e24c446

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/prerelease_windows_installer.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,19 @@ jobs:
2626
conda info
2727
conda env export
2828
- name: Get Version
29-
id: get_version
30-
uses: battila7/get-version-action@v2
29+
shell: bash -l {0}
30+
run: |
31+
echo "INSTALLER_VERSION=$(grep '^VERSION' ./contrib/Installer/mtfg-ofs-extension-installer.py | cut -d '=' -f 2 | sed 's/\"//g' | sed 's/ //g')" >> $GITHUB_ENV
32+
- name: Print Version
33+
run: echo $INSTALLER_VERSION
3134
- name: Build Installer
3235
shell: bash -l {0}
3336
working-directory: ./contrib/Installer
3437
run: |
3538
pyinstaller --add-data="assets/*;./" --noupx --onefile mtfg-ofs-extension-installer.py
3639
- uses: actions/upload-artifact@v2
3740
with:
38-
name: mtfg-ofs-extension-installer.exe
41+
name: mtfg-ofs-extension-installer-${{INSTALLER_VERSION}}.exe
3942
path: ./contrib/Installer/dist/mtfg-ofs-extension-installer.exe
4043
retention-days: 7
4144

0 commit comments

Comments
 (0)