mirror of
https://github.com/Xevion/spotify-quickauth.git
synced 2025-12-10 12:08:42 -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 }}
|
RELEASE_VERSION=v${{ env.PACKAGE_VERSION }}
|
||||||
ARCHIVE="spotify-player-quickauth-$RELEASE_VERSION-${{ matrix.target }}"
|
ARCHIVE="spotify-player-quickauth-$RELEASE_VERSION-${{ matrix.target }}"
|
||||||
|
|
||||||
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
||||||
ARCHIVE="$ARCHIVE.tar.gz"
|
ARCHIVE="$ARCHIVE.zip"
|
||||||
cp target/${{ matrix.target }}/release/spotify-player-quickauth.exe ./
|
cp target/${{ matrix.target }}/release/spotify-player-quickauth.exe ./
|
||||||
tar czf "$ARCHIVE" ./spotify-player-quickauth.exe
|
tar czf "$ARCHIVE" ./spotify-player-quickauth.exe
|
||||||
else
|
else
|
||||||
@@ -111,6 +111,13 @@ jobs:
|
|||||||
|
|
||||||
echo "ARCHIVE_PATH=$(pwd)/$ARCHIVE" >> $GITHUB_ENV
|
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
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
|||||||
Reference in New Issue
Block a user