Skip to content

Commit

Permalink
ci: rename created artifacts on MSBuild workflow to include version
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel committed Jan 25, 2024
1 parent 17c3df5 commit c5c9cfa
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ jobs:

- name: Create installer
working-directory: ${{env.GITHUB_WORKSPACE}}
# Running custom commands / executables is unnecessarily complicated in
# PowerShell, so I guess we have to do it that way.
shell: cmd
run: |
$command = '"C:\Program Files (x86)\Inno Setup 6\iscc.exe" "setup\setup.iss"'
Invoke-Expression "& $command"
"C:\Program Files (x86)\Inno Setup 6\iscc.exe" "setup\setup.iss"
for /f %%i IN ('git describe --always') do set "VERSION=%%i"
echo Version is %VERSION%.
move output\updater_setup.exe output\updater_setup_%VERSION%.exe
- name: Upload artifact
uses: actions/upload-artifact@v4
Expand All @@ -80,11 +81,11 @@ jobs:
copy changelog.md updater-%VERSION%\documentation
copy faq.md updater-%VERSION%\documentation
copy supported_applications.md updater-%VERSION%\documentation
"C:\Program Files\7-Zip\7z.exe" a -r updater.zip updater-%VERSION%
"C:\Program Files\7-Zip\7z.exe" a -r updater_%VERSION%.zip updater-%VERSION%
- name: Upload zipped updater
uses: actions/upload-artifact@v4
with:
name: updater-zipped
if-no-files-found: error
path: updater.zip
path: updater*.zip

0 comments on commit c5c9cfa

Please sign in to comment.