From c951c4a4d99899df67b763adf2b3cc189046815f Mon Sep 17 00:00:00 2001 From: Sara Tavares <29093946+stavares843@users.noreply.github.com> Date: Sat, 9 Nov 2024 19:02:59 +0000 Subject: [PATCH] chore(zip): update logic (#831) --- .github/workflows/build-release-android.yml | 5 ++++- .github/workflows/zip.yml | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-release-android.yml b/.github/workflows/build-release-android.yml index 80cafd0e1..7107743d4 100644 --- a/.github/workflows/build-release-android.yml +++ b/.github/workflows/build-release-android.yml @@ -4,7 +4,10 @@ on: push: tags: - "*" - + +permissions: + contents: write + jobs: build-android-release: runs-on: ubuntu-latest diff --git a/.github/workflows/zip.yml b/.github/workflows/zip.yml index 28510e1f7..79ee184f5 100644 --- a/.github/workflows/zip.yml +++ b/.github/workflows/zip.yml @@ -43,17 +43,17 @@ jobs: - name: Zip the build with version run: | mkdir -p target/release - zip -r target/release/Uplink_${VERSION}.zip ./build # Name the ZIP file with version + zip -r "target/release/Uplink_${{ env.VERSION }}.zip" ./build # Use ${{ env.VERSION }} # Step 7: Upload the ZIP file as an artifact - name: Upload build artifact uses: actions/upload-artifact@v4 with: name: build-zip - path: target/release/Uplink_${VERSION}.zip + path: target/release/Uplink_${{ env.VERSION }}.zip # Use ${{ env.VERSION }} # Step 8: Copy file to release - name: Copy file to release uses: softprops/action-gh-release@v2 with: - files: target/release/Uplink_${VERSION}.zip + files: target/release/Uplink_${{ env.VERSION }}.zip # Use ${{ env.VERSION }}