Skip to content

Commit

Permalink
feat: Upload AAB artifact to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
zatteo committed Jul 11, 2024
1 parent 6505925 commit e616b96
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build-android-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ jobs:
env:
BUILD_TOOLS_VERSION: "33.0.0"

- name: Upload AAB artifact to GitHub
uses: actions/upload-artifact@v3
with:
name: ${{ steps.artifact_info.outputs.artifact_name }}
path: android/app/build/outputs/bundle/prodRelease/*.aab

- name: Upload App to Google Play
uses: r0adkll/upload-google-play@v1
with:
Expand Down Expand Up @@ -125,13 +131,13 @@ jobs:
--ks-pass=pass:${{ secrets[format('{0}_ANDROID_KEY_STORE_PASSWORD', inputs.brand)] }} \
--ks-key-alias=${{ secrets[format('{0}_ANDROID_ALIAS', inputs.brand)] }} \
--key-pass=pass:${{ secrets[format('{0}_ANDROID_KEY_PASSWORD', inputs.brand)] }}
- name: Rename .apks file to .zip
run: mv app-prod-release.apks app-prod-release.zip

- name: Unzip the universal APK from the .zip file
run: unzip app-prod-release.zip -d ./extracted-apks

- name: Rename and move Universal APK
run: |
APK_PATH=$(find ./extracted-apks -name '*.apk')
Expand All @@ -146,7 +152,7 @@ jobs:
echo "ARTIFACT_NAME=$ARTIFACT_NAME" >> $GITHUB_ENV
echo "::set-output name=artifact_name::$ARTIFACT_NAME"
id: artifact_info

- name: Upload APK artifact to GitHub
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit e616b96

Please sign in to comment.