File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments