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

Workflow file for this run

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Priview to Firebase Hosting on PR
on:
pull_request: ~
permissions:
checks: write
contents: read
pull-requests: write
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
- run: flutter config --enable-web
- run: flutter build web --web-renderer canvaskit
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: web-build
path: build/web
- name: Priview to Firebase Hosting
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_WEBPAGE_349C7 }}'
projectId: webpage-349c7