Skip to content

Commit

Permalink
Fix order of operations (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
foodprocessor authored Dec 16, 2024
1 parent 8d4c93d commit 220d0e3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,25 @@ jobs:
# don't continue if we fail get the compiled GUI for the Windows installer
continue-on-error: false

# Build the installer and save it to actions/cache
- name: Set Version
id: get_version
run: echo "VERSION=${REF_NAME#v}" >> $GITHUB_OUTPUT
env:
REF_NAME: ${{ github.ref_name }}

- name: Run Inno Setup
# Build the installer and save it to actions/cache
working-directory: ./build
shell: bash
# Inno Setup is pre-installed on GitHub's windows-latest image
# see documentation: https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md
run: |
"C:/Program Files (x86)/Inno Setup 6/iscc.exe" windows_installer_build.iss
- name: Rename installer
run: |
mv build/Output/cloudfuse.exe build/Output/cloudfuse_${{ steps.get_version.outputs.VERSION }}_windows_amd64.exe
- name: Run Inno Setup for No Gui
working-directory: ./build
shell: bash
Expand All @@ -148,16 +158,6 @@ jobs:
run: |
"C:/Program Files (x86)/Inno Setup 6/iscc.exe" windows_installer_build_no_gui.iss
- name: Set Version
id: get_version
run: echo "VERSION=${REF_NAME#v}" >> $GITHUB_OUTPUT
env:
REF_NAME: ${{ github.ref_name }}

- name: Rename installer
run: |
mv build/Output/cloudfuse.exe build/Output/cloudfuse_${{ steps.get_version.outputs.VERSION }}_windows_amd64.exe
- name: Rename installer No Gui
run: |
mv build/Output/cloudfuse.exe build/Output/cloudfuse_no_gui_${{ steps.get_version.outputs.VERSION }}_windows_amd64.exe
Expand Down

0 comments on commit 220d0e3

Please sign in to comment.