Files
firecms/.github/workflows/firebase-hosting-merge.yml
2021-06-27 12:23:04 +02:00

31 lines
876 B
YAML

# 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:
- master
jobs:
build_and_deploy:
runs-on: ubuntu-latest
# defaults:
# run:
# working-directory: ./website
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12'
- run: yarn
- 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