This repository has been archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: dyanmic deploy based on webhook payload
- Loading branch information
1 parent
45817e1
commit 5026e9a
Showing
3 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,17 +19,17 @@ jobs: | |
run: yarn run build | ||
env: | ||
CMS_CRUD: ${{ secrets.CMS_CRUD }} | ||
CONTENTFUL_SPACE: ${{ secrets.CONTENTFUL_SPACE }} | ||
CONTENTFUL_SPACE: ${{ github.event.client_payload.spaceId }} | ||
CONTENTFUL_TOKEN: ${{ secrets.CONTENTFUL_TOKEN }} | ||
GA_TRACKING_ID: ${{ secrets.GA_TRACKING_ID }} | ||
TAG_MANAGER_ID: ${{ secrets.TAG_MANAGER_ID }} | ||
FATHOM_SITE_ID: ${{ secrets.FATHOM_SITE_ID }} | ||
PLAUSIBLE_CUSTOM_DOMAIN: ${{ secrets.PLAUSIBLE_CUSTOM_DOMAIN }} | ||
GOOGLE_SITE_VERIFICATION_META_CONTENT: ${{ secrets.GOOGLE_SITE_VERIFICATION_META_CONTENT }} | ||
GATSBY_CONTACT_US_ENDPOINT_URI: ${{ secrets.CONTACT_US_ENDPOINT_URI }} | ||
CONTENTFUL_ENVIRONMENT: ${{ github.event.client_payload.environment }} | ||
CONTENTFUL_HOST: ${{ github.event.client_payload.host }} | ||
NODE_ENV: production | ||
- name: Get branch | ||
uses: rlespinasse/[email protected] | ||
- name: Deploy to Netlify | ||
id: deploy | ||
uses: nwtgck/actions-netlify@v2 | ||
|
@@ -44,7 +44,7 @@ jobs: | |
enable-commit-comment: false | ||
enable-commit-status: false | ||
overwrites-pull-request-comment: true | ||
github-deployment-environment: ${{ env.GITHUB_HEAD_REF_SLUG || env.GITHUB_REF_SLUG }} | ||
github-deployment-environment: ${{ github.event.client_payload.environment }} | ||
fails-without-credentials: true | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters