Skip to content

Commit

Permalink
Update build-f-droid-apk.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Feb 16, 2024
1 parent 5a036c2 commit 2f0be4f
Showing 1 changed file with 18 additions and 21 deletions.
39 changes: 18 additions & 21 deletions .github/workflows/build-f-droid-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,36 +90,33 @@ jobs:
# - name: Remove prorietary bits (for fix f-droid)
# run: npx zx scripts/fit-f-droid.mjs

- name: Build APK
run: |
cd android
./gradlew clean
./gradlew assembleRelease --no-daemon --warning-mode all
# - name: Build APK
# run: |
# cd android
# ./gradlew clean
# ./gradlew assembleRelease --no-daemon --warning-mode all

## sign generated apk
- name: Sign APK
id: sign_app_apk
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: android/app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }}
alias: ${{ secrets.ANDROID_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOLS_VERSION }}
# ## sign generated apk
# - name: Sign APK
# id: sign_app_apk
# uses: r0adkll/sign-android-release@v1
# with:
# releaseDirectory: android/app/build/outputs/apk/release
# signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }}
# alias: ${{ secrets.ANDROID_ALIAS }}
# keyStorePassword: ${{ secrets.ANDROID_KEY_STORE_PASSWORD }}
# keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
# env:
# BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOLS_VERSION }}

- name: Build AAB
run: |
cd android
# ./gradlew clean
./gradlew bundleRelease --no-daemon --warning-mode all
ls android/app/build/outputs/bundle/release/
ls android/app/build/outputs/apk/release/
- name: Show artifacts
run: |
cd android
ls android/app/build/outputs/bundle/release/
ls android/app/build/outputs/apk/release/
Expand All @@ -142,7 +139,7 @@ jobs:
draft: true
generate_release_notes: true
files: |
android/app/build/outputs/apk/release/app-release-signed.apk
# android/app/build/outputs/apk/release/app-release-signed.apk
android/app/build/outputs/bundle/release/app-release-signed.aab
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2f0be4f

Please sign in to comment.