Skip to content

Commit

Permalink
chore(zip): update logic (#831)
Browse files Browse the repository at this point in the history
  • Loading branch information
stavares843 authored Nov 9, 2024
1 parent 99de501 commit c951c4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-release-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on:
push:
tags:
- "*"


permissions:
contents: write

jobs:
build-android-release:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit c951c4a

Please sign in to comment.