Skip to content

Commit 5f2db28

Browse files
committed
2 parents 52ff9b6 + d699d66 commit 5f2db28

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/github-pages.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: github pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: '12.x'
18+
19+
- name: Cache dependencies
20+
uses: actions/cache@v2
21+
with:
22+
path: ~/.yarn
23+
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
24+
restore-keys: |
25+
${{ runner.os }}-node-
26+
27+
- run: yarn install --frozen-lockfile
28+
- run: yarn test
29+
- name: Build # builds the docs site with --prefix-paths for gh-pages
30+
run: |
31+
yarn predeploy:prefix
32+
env:
33+
GATSBY_SITE_RECAPTCHA_KEY: ${{ secrets.GATSBY_SITE_RECAPTCHA_KEY }}
34+
35+
- name: Deploy
36+
uses: peaceiris/actions-gh-pages@v3
37+
with:
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
publish_dir: ./www/public

0 commit comments

Comments
 (0)