Deploy Playstore Beta #17
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: Deploy Playstore Beta | |
on: | |
workflow_call: | |
workflow_dispatch: | |
jobs: | |
deploy-playstore-beta: | |
name: Deploy Playstore Beta | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
with: | |
ref: 'beta' | |
- name: Decode Android keystore | |
run: echo "${{ secrets.ANDROID_KEYSTORE }}" | base64 --decode > android/app/dimipay-keystore.jks | |
- name: Decode Android key properties | |
run: echo "${{ secrets.ANDROID_KEY_PROPERTIES }}" > android/key.properties | |
- name: Decode Android Service Account | |
run: echo "${{ secrets.PLAY_STORE_CREDENTIAL }}" | base64 --decode > android/play-store-credential.json | |
- name: Decode Google Service Json | |
run: echo "${{ secrets.ANDROID_GOOGLE_SERVICE_JSON }}" | base64 --decode > android/app/google-services.json | |
- name: Decode Firebase Options | |
run: echo "${{ secrets.FIREBASE_OPTIONS }}" > lib/firebase_options.dart | |
- name: make env directory | |
run: mkdir env | |
- name: add .env file | |
run: echo "" > env/.env | |
- name: Setup Java to compile the Android project | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: 17.0 | |
- name: Install flutter sdk | |
uses: subosito/flutter-action@v2.16.0 | |
with: | |
channel: stable | |
cache: true | |
flutter-version-file: pubspec.yaml | |
- run: flutter pub get | |
- run: flutter build appbundle --release | |
- run: fastlane beta | |
working-directory: ./android | |