Skip to content

Commit

Permalink
Fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sunkup committed Mar 12, 2024
1 parent 80ce6c1 commit 0c66c1d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,24 @@ jobs:
- name: Prepare keystore
run: echo ${{ secrets.android_keystore_base64 }} | base64 -d >$GITHUB_WORKSPACE/keystore.jks

- name: Build signed packages
- name: Build signed package (APK)
# AboutLibraries 10.6.3 doesn't show any dependencies when configuration cache is used
run: ./gradlew --no-configuration-cache --no-daemon app:bundleRelease app:assembleRelease
run: ./gradlew --no-configuration-cache --no-daemon app:assembleRelease
env:
ANDROID_KEYSTORE: ${{ github.workspace }}/keystore.jks
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.android_keystore_password }}
ANDROID_KEY_ALIAS: ${{ secrets.android_key_alias }}
ANDROID_KEY_PASSWORD: ${{ secrets.android_key_password }}

- name: Build signed bundle (AAB)
# AboutLibraries 10.6.3 doesn't show any dependencies when configuration cache is used
run: ./gradlew --no-configuration-cache --no-daemon app:bundleRelease
env:
ANDROID_KEYSTORE: ${{ github.workspace }}/keystore.jks
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.android_keystore_password }}
ANDROID_KEY_ALIAS: ${{ secrets.upload_key_alias }}
ANDROID_KEY_PASSWORD: ${{ secrets.upload_key_password }}

- name: Create Github release (from standard flavor)
id: create_release
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit 0c66c1d

Please sign in to comment.