publish Blokada 6 for Android: 24.4.8 #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Internal: Blokada Family for Android | ||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- android.family.** | ||
env: | ||
main_project_module: app | ||
playstore_name: org.blokada.family | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./six-android | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Set Up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
- name: Change wrapper permissions | ||
run: chmod +x ./gradlew | ||
- name: Get Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
- name: Build common lib | ||
run: | | ||
git config --global url."https://${{ secrets.GIT_TOKEN }}@github.com/".insteadOf "[email protected]:" | ||
make sixcommon | ||
- name: Build aab | ||
run: make aabfamily | ||
- name: Sign app AAB | ||
uses: r0adkll/sign-android-release@v1 | ||
id: sign_app | ||
with: | ||
releaseDirectory: six-android/app/build/outputs/bundle/familyRelease | ||
signingKeyBase64: ${{ secrets.SIGNING_KEY }} | ||
alias: ${{ secrets.ALIAS }} | ||
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} | ||
keyPassword: ${{ secrets.KEY_PASSWORD }} | ||
- name: Upload to Google Play (no review) | ||
uses: r0adkll/upload-google-play@v1 | ||
with: | ||
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} | ||
packageName: org.blokada.family | ||
releaseFiles: ${{steps.sign_app.outputs.signedReleaseFile}} | ||
track: internal | ||
status: completed | ||
changesNotSentForReview: true | ||
whatsNewDirectory: six-android/whatsnew | ||
continue-on-error: true | ||
- name: Upload to Google Play (with review) | ||
uses: r0adkll/upload-google-play@v1 | ||
with: | ||
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} | ||
packageName: org.blokada.family | ||
releaseFiles: ${{steps.sign_app.outputs.signedReleaseFile}} | ||
track: internal | ||
status: completed | ||
whatsNewDirectory: six-android/whatsnew | ||
if: failure() # Of the previous step |