diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b174d85..c5d212f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -94,7 +94,9 @@ jobs: if: steps.cache.outputs.cache-hit == 'true' run: | ./utils/linux/linux-tar.sh - mv mod-desktop-*.tar.xz mod-desktop-${{ env.VERSION_TAG }}-linux-x86_64-debug.tar.xz + if [ "${{ env.VERSION_TAG }}" != "$(cat VERSION)" ]; then + mv mod-desktop-*.tar.xz mod-desktop-${{ env.VERSION_TAG }}-linux-x86_64.tar.xz + fi - uses: actions/upload-artifact@v3 if: ${{ matrix.container == env.RELEASE_OS_LINUX }} with: @@ -187,7 +189,9 @@ jobs: if: steps.cache.outputs.cache-hit == 'true' run: | ./utils/linux/linux-tar.sh - mv mod-desktop-*.tar.xz mod-desktop-${{ env.VERSION_TAG }}-linux-x86_64-debug.tar.xz + if [ "${{ env.VERSION_TAG }}" != "$(cat VERSION)" ]; then + mv mod-desktop-*.tar.xz mod-desktop-${{ env.VERSION_TAG }}-linux-x86_64-debug.tar.xz + fi - uses: actions/upload-artifact@v3 if: ${{ matrix.container == env.RELEASE_OS_LINUX }} with: @@ -252,7 +256,9 @@ jobs: if: steps.cache.outputs.cache-hit == 'true' run: | ./utils/macos/macos-pkg.sh ${{ matrix.target }} - mv mod-desktop-*.pkg mod-desktop-${{ env.VERSION_TAG }}-macOS.pkg + if [ "${{ env.VERSION_TAG }}" != "$(cat VERSION)" ]; then + mv mod-desktop-*.pkg mod-desktop-${{ env.VERSION_TAG }}-macOS.pkg + fi - uses: actions/upload-artifact@v4 if: ${{ matrix.os == env.RELEASE_OS_MAC && matrix.target == 'macos-universal-10.15' }} with: @@ -323,9 +329,11 @@ jobs: if: steps.cache.outputs.cache-hit == 'true' run: | xvfb-run ./utils/win64/win64-installer.sh - mv mod-desktop-*.exe mod-desktop-${{ env.VERSION_TAG }}-win64.exe ./utils/win64/win64-zip.sh - mv mod-desktop-*.zip mod-desktop-${{ env.VERSION_TAG }}-win64.zip + if [ "${{ env.VERSION_TAG }}" != "$(cat VERSION)" ]; then + mv mod-desktop-*.exe mod-desktop-${{ env.VERSION_TAG }}-win64.exe + mv mod-desktop-*.zip mod-desktop-${{ env.VERSION_TAG }}-win64.zip + fi - uses: actions/upload-artifact@v4 if: ${{ matrix.container == env.RELEASE_OS_WIN64 }} with: