Skip to content

Instantly share code, notes, and snippets.

@arturograu
Created December 16, 2021 11:27
Show Gist options
  • Select an option

  • Save arturograu/1f91a83a9343bece23d34ffee64834a6 to your computer and use it in GitHub Desktop.

Select an option

Save arturograu/1f91a83a9343bece23d34ffee64834a6 to your computer and use it in GitHub Desktop.
# 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_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo snap install flutter --classic
- run: flutter config --enable-web
- run: flutter build web -t lib/main_prod.dart --release
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_QUALITIME }}'
channelId: live
projectId: demoproject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment