update pubspec lock #261
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: Android CI | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the "main" branch | |
push: | |
branches: [ "main" ] | |
paths-ignore: | |
- "/ios/**" | |
pull_request: | |
branches: [ "main" ] | |
paths-ignore: | |
- "/ios/**" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- run: flutter pub get | |
working-directory: ./app | |
- run: echo "${{ secrets.MAPTILER_KEY }}" > assets/maptiler.txt | |
working-directory: ./app | |
- run: touch assets/tomtom.txt | |
working-directory: ./app | |
- run: flutter build apk | |
working-directory: ./app | |
- run: flutter build appbundle | |
working-directory: ./app | |
- name: Upload APK artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: apk | |
path: app/build/app/outputs/flutter-apk/app-release.apk | |
- name: Upload App Bundle artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: appbundle | |
path: app/build/app/outputs/bundle/release/app-release.aab |