Merge pull request #497 from Prafulrakhade/release-0.11.x #244
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: Build Android Registration-Client | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- release* | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup java 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.10.4' | |
- name: Install Dart SDK | |
run: flutter pub get | |
- name: Flutter clean | |
run: flutter clean | |
- name: Creating Folders for generated source code | |
run: | | |
sh pigeon.sh | |
# - name: Flutter test | |
# run: flutter test | |
- name: Decode android/app/arc-local-keystore.jks | |
run: echo "${{ secrets.JKS_PRIVATE_SECRET }}" | base64 --decode > android/app/arc-local-keystore.jks | |
- name: Decode android/key.properties | |
run: echo "${{ secrets.KEY_PROPERTIES }}" | base64 --decode > android/key.properties | |
- name: Build Android APK | |
run: flutter build apk | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: apk-output | |
path: ./build/app/outputs/flutter-apk/app-release.apk | |
retention-days: 10 |