feat: add cloud_firestore and firebase_core plugins, generating platf… #12
This file contains hidden or 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: 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 }} |