diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e6c46b5..308f17a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -99,8 +99,8 @@ jobs: RELEASE_VERSION=v${{ env.PACKAGE_VERSION }} ARCHIVE="spotify-player-quickauth-$RELEASE_VERSION-${{ matrix.target }}" - if [[ "$RUNNER_OS" == "Windows" ]]; then - ARCHIVE="$ARCHIVE.tar.gz" + if [[ "$RUNNER_OS" == "Windows" ]]; then + ARCHIVE="$ARCHIVE.zip" cp target/${{ matrix.target }}/release/spotify-player-quickauth.exe ./ tar czf "$ARCHIVE" ./spotify-player-quickauth.exe else @@ -111,6 +111,13 @@ jobs: echo "ARCHIVE_PATH=$(pwd)/$ARCHIVE" >> $GITHUB_ENV + - name: Verify Archive + run: | + if [ ! -f "${{ env.ARCHIVE_PATH }}" ]; then + echo "Error: Archive file not found!" + exit 1 + fi + - name: Release uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/')