Skip to content

Commit

Permalink
Deploy preview build to long lived preview channel site.
Browse files Browse the repository at this point in the history
  • Loading branch information
grugnog committed Jan 30, 2024
1 parent 472519f commit af771ef
Showing 1 changed file with 15 additions and 2 deletions.
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,14 +34,26 @@ 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 }}'
STRAPI_TOKEN: '${{ secrets.STRAPI_TOKEN }}'
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_CA_IT_PROD_HOME_5918 }}'
firebaseSeviceAccount: '${{ 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

0 comments on commit af771ef

Please sign in to comment.