mirror of
https://github.com/Xevion/spotify-quickauth.git
synced 2025-12-09 14:08:45 -06:00
Use .zip, verify archive
This commit is contained in:
11
.github/workflows/build.yaml
vendored
11
.github/workflows/build.yaml
vendored
@@ -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/')
|
||||
|
||||
Reference in New Issue
Block a user