Skip to content

Instantly share code, notes, and snippets.

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

  • Save arturograu/7d7691cf1b1d3f20f6f51accd2baa783 to your computer and use it in GitHub Desktop.

Select an option

Save arturograu/7d7691cf1b1d3f20f6f51accd2baa783 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 PR
'on': pull_request
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
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_staging.dart --release
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_QUALITIME }}'
projectId: demoproject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment