Skip to content

feat: add cloud_firestore and firebase_core plugins, generating platf… #12

feat: add cloud_firestore and firebase_core plugins, generating platf…

feat: add cloud_firestore and firebase_core plugins, generating platf… #12

Workflow file for this run

name: Deploy Flutter Web to Firebase Hosting
on:
push:
branches: [ "main" ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.24.0"
channel: "stable"
cache: true
- name: Flutter pub get
run: flutter pub get
- name: Build Flutter Web
run: flutter build web --release --web-renderer canvaskit
- name: Install Firebase CLI
run: npm i -g firebase-tools
- name: Deploy to Firebase Hosting
run: firebase deploy --only hosting --project metly-62916
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}