Skip to content

Commit

Permalink
add aab to the build process
Browse files Browse the repository at this point in the history
  • Loading branch information
ubaldus committed Jun 1, 2024
1 parent a92a055 commit 06fa003
Showing 1 changed file with 31 additions and 8 deletions.
39 changes: 31 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,35 @@ jobs:
with:
java-version: '17'

- name: Build
- name: Build AAB
run: |
./gradlew assembleRelease
./gradlew clean
./gradlew bundleRelease --no-daemon --warning-mode all
- name: Sign AAB
id: sign_app_aab
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/bundle/release
signingKeyBase64: ${{ secrets.ANDROID_KEYSTORE }}
alias: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: "34.0.0"

- name: Copy
run: |
cp app/build/outputs/bundle/release/app-release.aab app-release.aab
- name: Build APK
run: |
./gradlew clean
./gradlew assembleRelease --no-daemon --warning-mode all
- name: Sign APK
id: sign_app_apk
uses: r0adkll/sign-android-release@v1
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.ANDROID_KEYSTORE }}
Expand All @@ -34,14 +56,15 @@ jobs:
env:
BUILD_TOOLS_VERSION: "34.0.0"

- name: Rename
- name: Copy
run: |
mv app/build/outputs/apk/release/app-release-unsigned-signed.apk eja-surf.apk
- name: Release
cp app/build/outputs/apk/release/app-release-unsigned-signed.apk app-release.apk
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
eja-surf.apk
app-release.apk
app-release.aab
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 06fa003

Please sign in to comment.