Skip to content

ci: adiciona step de geração de código #4

ci: adiciona step de geração de código

ci: adiciona step de geração de código #4

Workflow file for this run

name: Flutter
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.22.1
- name: Install dependencies
run: flutter pub get
- name: Build code
run: flutter pub run build_runner build
- name: Build
run: flutter build web
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Export Firebase key
run: echo $GOOGLE_SERVICE_ACCOUNT_DATA > $HOME/gcloud.json
- name: Reference Firebase key
run: export GOOGLE_APPLICATION_CREDENTIALS=$HOME/gcloud.json
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting:gerafrequencia --project theahert
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}