update dart.yml #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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Dart | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
workflow_dispatch: | |
jobs: | |
build_android: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.PAT_ORG }} | |
submodules: recursive | |
- uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: "3.1.4" | |
- uses: subosito/[email protected] | |
with: | |
flutter-version: "3.13.8" | |
- name: setup credentials for namidaco | |
run: git config --global url.https://${{ secrets.PAT_ORG }}@github.com/namidaco/.insteadOf https://github.com/namidaco/ | |
- name: setup credentials for MSOB7YY | |
run: git config --global url.https://${{ secrets.PAT }}@github.com/MSOB7YY/.insteadOf https://github.com/MSOB7YY/ | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Build | |
run: flutter build apk --target-platform android-arm,android-arm64 --release --split-per-abi -v | |
- name: Upload arm64-v8a APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: app-arm64-v8a-release | |
path: build/app/outputs/flutter-apk/app-arm64-v8a-release.apk | |
- name: Upload armeabi-v7a | |
uses: actions/upload-artifact@v3 | |
with: | |
name: app-armeabi-v7a-release | |
path: build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk |