Skip to content

Commit aab8457

Browse files
committed
Add workflow to deploy site preview
1 parent 4f4b78f commit aab8457

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Update and Preview
2+
on: workflow_dispatch
3+
4+
jobs:
5+
deploy-preview:
6+
name: Deploy Preview
7+
runs-on: ubuntu-latest
8+
environment: deploy
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
14+
- name: Pull documents from Notion
15+
run: ./pull_docs.sh --skip-pulling-from-s3
16+
env:
17+
SF_HELP_NOTION_TOKEN: ${{ secrets.SF_HELP_NOTION_TOKEN }}
18+
SF_HELP_NOTION_ROOT_PAGE_ID: ${{ secrets.SF_HELP_NOTION_ROOT_PAGE_ID }}
19+
20+
- name: Build the site
21+
run: ./build.sh
22+
23+
- name: Deploy preview to Netlify
24+
run: ./deploy.sh
25+
env:
26+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

0 commit comments

Comments
 (0)