[feat] adding basic geolocation #82
Workflow file for this run
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: Flutter CI | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: "Static code analysis" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '12.x' | |
- uses: subosito/flutter-action@v1 | |
with: | |
flutter-version: '2.0.3' | |
- name: Generating .env file | |
run: dart tool/env.dart | |
- run: flutter pub get | |
- name: Lint analysis | |
run: flutter analyze | |
build-android: | |
name: "Build Android apk" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '12.x' | |
- uses: subosito/flutter-action@v1 | |
with: | |
flutter-version: '2.0.3' | |
- run: flutter pub get | |
- name: Generating .env file | |
env: # set secret as an environment variable | |
GMAPS_PLACES_API_KEY: ${{ secrets.GMAPS_PLACES_API_KEY }} | |
run: dart tool/env.dart | |
- name: Build Pandemia APK | |
run: flutter build apk | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: Pandemia.apk | |
path: build/app/outputs/apk/release/app-release.apk | |
build-iOS: | |
name: Build iOS package | |
runs-on: macos-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '12.x' | |
- uses: subosito/flutter-action@v1 | |
with: | |
flutter-version: '2.0.3' | |
- name: Generating .env file | |
env: # set secret as an environment variable | |
GMAPS_PLACES_API_KEY: ${{ secrets.GMAPS_PLACES_API_KEY }} | |
run: dart tool/env.dart | |
- name: build iOS Pandemia package | |
run: flutter build ios --release --no-codesign | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: Pandemia.app | |
path: build/ios/iphoneos/Runner.app |