Skip to content

ci: updated netlify deployment #23

ci: updated netlify deployment

ci: updated netlify deployment #23

Workflow file for this run

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