Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy preview build to long lived preview channel site. #258

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name: Deploy to Firebase Hosting on merge, content update and schedule
push:
branches:
- main
- drafts
repository_dispatch:
types: [created]
schedule:
Expand Down Expand Up @@ -33,7 +34,7 @@ jobs:
${{ runner.os }}-gatsby-build-
- name: Yarn install
run: 'yarn install --frozen-lockfile'
- name: Build
- name: Build production
run: yarn build
env:
STRAPI_API_URL: '${{ secrets.STRAPI_API_URL }}'
Expand All @@ -44,3 +45,15 @@ jobs:
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_CA_IT_PROD_HOME_5918 }}'
channelId: live
projectId: ca-it-prod-home-5918
- name: Build staging
run: yarn build
env:
STRAPI_API_URL: '${{ secrets.STRAPI_API_URL }}'
STRAPI_TOKEN: '${{ secrets.STRAPI_TOKEN }}'
GATSBY_IS_PREVIEW: true
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_CA_IT_PROD_HOME_5918 }}'
channelId: preview
projectId: ca-it-prod-home-5918
Loading