mirror of
https://github.com/zhigang1992/firecms.git
synced 2026-06-17 02:51:51 +08:00
31 lines
876 B
YAML
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
|