Skip to content

contentful.deploy

contentful.deploy #73

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: "[merge] Deploy to Firebase Hosting on merge"
"on":
push:
branches:
- main
repository_dispatch:
types: [contentful.deploy]
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn install --immutable --immutable-cache
- run: yarn build
env:
CONTENTFUL_SPACE_ID: "${{ secrets.CONTENTFUL_SPACE_ID }}"
CONTENTFUL_DELIVERY_TOKEN: "${{ secrets.CONTENTFUL_DELIVERY_TOKEN }}"
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_FRIENDS_OF_FOXLEY_PROD }}"
channelId: live
projectId: friends-of-foxley-prod