Update to android 14 #20
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 store | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- "lib/**" | |
- "assets/**" | |
- "pubspec.yaml" | |
- "pubspec.lock" | |
- "android/**" | |
branches: | |
- master | |
jobs: | |
build-android: | |
runs-on: macos-latest | |
name: Build Android app | |
env: | |
ANDROID_KEYSTORE_PATH: ../island-puzzle.jks | |
ANDROID_KEYSTORE_ALIAS: upload | |
ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PW }} | |
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PW }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: 3.16.0 | |
channel: stable | |
cache: true | |
- name: Install Dependencies | |
run: flutter packages get | |
- name: Download keystore | |
run: curl https://${{ secrets.REPO_ACCESS_TOKEN }}@raw.githubusercontent.com/renefloor/flutter_puzzle_hack_secrets/main/island-puzzle.jks -o android/island-puzzle.jks | |
- name: Build for android | |
run: | | |
flutter build appbundle \ | |
--build-number $GITHUB_RUN_NUMBER | |
- name: Upload app bundle to Google Play | |
uses: r0adkll/[email protected] | |
with: | |
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_JSON }} | |
packageName: nl.renefloor.puzzle | |
releaseFiles: build/app/outputs/bundle/release/app-release.aab | |
track: internal | |
mappingFile: build/app/outputs/mapping/release/mapping.txt |