Skip to content

Commit

Permalink
Cherry pick PR #2937: Make android releases upload the APKs (#2948)
Browse files Browse the repository at this point in the history
Refer to the original PR: #2937

Uploads Android APK bundle as a release artifact on release events.

b/333300092
b/290121545

Co-authored-by: Kaido Kert <[email protected]>
  • Loading branch information
cobalt-github-releaser-bot and kaidokert committed Apr 15, 2024
1 parent 5bda47d commit a9c69c6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/android_24.lts.1+.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
needs: [ android-arm, android-arm64, android-x86 ]
permissions:
actions: write
contents: write
steps:
- name: Download arm-gold apk
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -94,3 +95,12 @@ jobs:
retention-days: 90
compression-level: 0 # We expect kept artifacts to be already compressed
if-no-files-found: error
- name: Make a release zip
run: zip -0 -r "Android APKs.zip" . -i '*.apk'
- name: Upload the APKs to a release
if: ${{ github.event_name == 'release' }}
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2.9.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "Android APKs.zip"
overwrite: true

0 comments on commit a9c69c6

Please sign in to comment.