From cc2c658c9c271bbde38c0350074c490d1226ac49 Mon Sep 17 00:00:00 2001 From: Xevion Date: Tue, 1 Oct 2024 17:59:10 -0500 Subject: [PATCH] adjust archive path, add release action --- .github/workflows/build.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7f74503..7e2bc1b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -83,12 +83,19 @@ jobs: cp target/${{ matrix.target }}/release/spotify-player-quickauth $stage/ cd $stage + RELEASE_VERSION=v${{ steps.get_version.outputs.result }} - ASSET_NAME="spotify-player-quickauth-$RELEASE_VERSION-${{ matrix.target }}.tar.gz" - ASSET_PATH="$src/$ASSET_NAME" + ARCHIVE="spotify-player-quickauth-$RELEASE_VERSION-${{ matrix.target }}.tar.gz" + tar czf "$ARCHIVE" ./spotify-player-quickauth echo "ASSET_PATH=$ASSET_PATH" >> $GITHUB_ENV - tar czf $ASSET_PATH * - cd $src + + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: ${{ env.ASSET_PATH }} + generate_release_notes: true + fail_on_unmatched_files: true # Publish flow # - name: cargo login