Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

🚚 Migrate deprecated imperative apply of Flutter's Gradle plugins #11

🚚 Migrate deprecated imperative apply of Flutter's Gradle plugins

🚚 Migrate deprecated imperative apply of Flutter's Gradle plugins #11

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on merge/push
"on":
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Checkout repo
uses: actions/checkout@v3
- name: πŸ› οΈ Setup Flutter
id: flutter-action
uses: subosito/[email protected]
with:
channel: stable
- name: πŸ•ΈοΈ Flutter build for web
run: |
flutter pub get
flutter build web
- name: πŸš€ Deploy to Firebase Hosting
id: firebase_deploy
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_FL_CHATGPT }}"
channelId: live
projectId: fl-chatgpt
- name: πŸ“ Write job summary
run: |
echo "# :rocket: Successfully deployed Web to Firebase" >> $GITHUB_STEP_SUMMARY
echo "The job was automatically triggered by a ${{ github.event_name }} event." >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo ":blue_heart: Using **Flutter ${{ steps.flutter-action.outputs.CHANNEL }}**" >> $GITHUB_STEP_SUMMARY
echo ":blue_heart: Version ${{ steps.flutter-action.outputs.VERSION }}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo ":link: URLs: ${{ steps.firebase_deploy.outputs.urls }}" >> $GITHUB_STEP_SUMMARY