diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index ddc1f737a..9ea97a464 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -131,8 +131,14 @@ 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 @@ -140,6 +146,10 @@ jobs: 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 @@ -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