add preconnect links #15
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
# This file was auto-generated by the Firebase CLI | |
# https://github.com/firebase/firebase-tools | |
name: Deploy to Firebase Hosting on merge | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📚 Git Checkout | |
uses: actions/checkout@v4 | |
- name: 🐦 Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
flutter-version: 3.24.0 | |
- name: 📦 Install Dependencies | |
run: flutter pub get | |
- name: 🛠️ Build the application | |
run: flutter build web -t lib/main.dart | |
- name: ⬇️ Archive Production Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: web-build | |
path: build/web | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: 📚 Git Checkout | |
uses: actions/checkout@v4 | |
- name: 📦 Download Artifact | |
uses: actions/download-artifact@v2 | |
with: | |
name: web-build | |
path: build/web | |
- name: 🚀 Deploy to Firebase Hosting | |
uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: ${{ secrets.GITHUB_TOKEN }} | |
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_BURRITO_WEB_C7011 }} | |
channelId: live | |
projectId: burrito-web-c7011 |