From 18b37b7b48389ef24272813230c8b1c111d6c09e Mon Sep 17 00:00:00 2001 From: Martichou Date: Thu, 20 Jun 2024 00:43:46 +0200 Subject: [PATCH] fix: release artifacts Signed-off-by: Martichou --- .github/workflows/release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 264b42d..5dd4e60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,15 @@ jobs: build-release: runs-on: ubuntu-20.04 steps: + - name: Extract version number + run: | + TAG=${{ github.ref_name }} + echo "VERSION=${TAG#v}" >> $GITHUB_ENV + + - name: Print version number + run: | + echo "Version number: ${{ env.VERSION }}" + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 @@ -48,7 +57,7 @@ jobs: uses: softprops/action-gh-release@v1 with: files: | - ${{ github.workspace }}/frontend/src-tauri/target/release/bundle/*/r-quick-share_${{ github.ref_name }}* + ${{ github.workspace }}/frontend/src-tauri/target/release/bundle/*/r-quick-share_${{ env.VERSION }}* ${{ github.workspace }}/frontend/min_glibc_v* ${{ steps.build-snap.outputs.snap }} fail_on_unmatched_files: true