ci: updated netlify deployment #23
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: Test PR | |
on: | |
pull_request: | |
push: | |
branches: | |
- flutter | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- name: Get Packages | |
run: flutter pub get | |
- name: Analyze | |
run: flutter analyze | |
# - name: Run Tests | |
# run: flutter test | |
build-android: | |
name: Build Android | |
runs-on: ubuntu-latest | |
needs: analyze | |
steps: | |
- name: Code Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- name: Get Packages | |
run: flutter pub get | |
- name: Build APK | |
run: flutter build apk | |
- name: Build App Bundle | |
run: flutter build appbundle | |
- name: Upload APK | |
uses: actions/upload-artifact@v2 | |
with: | |
name: app-release.apk | |
path: build/app/outputs/apk/release/app-release.apk | |
- name: Upload App Bundle | |
uses: actions/upload-artifact@v2 | |
with: | |
name: app-release.aab | |
path: build/app/outputs/bundle/release/app-release.aab | |
build-web: | |
name: Build Web | |
runs-on: ubuntu-latest | |
needs: analyze | |
steps: | |
- name: Code Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- name: Get Packages | |
run: flutter pub get | |
- name: Build Web | |
run: flutter build web |