Skip to content

Adding Firebase Emulator example (#562) #24

Adding Firebase Emulator example (#562)

Adding Firebase Emulator example (#562) #24

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy website to Firebase Hosting on merge
'on':
push:
branches:
- website
jobs:
build_and_deploy:
runs-on: ubuntu-latest
env:
REACT_APP_GTAG_ID: ${{ secrets.REACT_APP_GTAG_ID }}
REACT_APP_DOC_SEARCH_KEY: ${{ secrets.REACT_APP_DOC_SEARCH_KEY }}
REACT_APP_DOC_SEARCH_APP_ID: ${{ secrets.REACT_APP_DOC_SEARCH_APP_ID }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: yarn install --no-immutable
- run: cd website && yarn && yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
entryPoint: website
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_FIRECMS_DEMO_27150 }}'
channelId: live
projectId: firecms-demo-27150
env:
FIREBASE_CLI_PREVIEWS: hostingchannels