chore: apply flutter_lints and update Android example #28
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: Publish | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '12.x' | |
- name: Install Flutter | |
uses: subosito/flutter-action@v1 | |
with: | |
flutter-version: '3.19.1' | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Run dart analyze | |
run: dart analyze | |
- name: build iOS example project | |
working-directory: ./example | |
run: flutter build ios --release --no-codesign | |
- name: build android example project | |
working-directory: ./example | |
run: flutter build apk | |
- name: publish --dry-run | |
run: flutter pub publish --dry-run |