Skip to content

Commit 65f29e1

Browse files
committed
try to make docs deployment work
1 parent 37cb63a commit 65f29e1

1 file changed

Lines changed: 25 additions & 11 deletions

File tree

.github/workflows/docs.yml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
1-
name: CI
1+
name: github pages
22

3-
on:
4-
push:
5-
branches:
6-
- master
3+
on:
4+
push:
5+
branches:
6+
- master
77

88
jobs:
9-
build:
9+
build-deploy:
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- uses: actions/checkout@v1
1013

11-
runs-on: [ubuntu-latest]
14+
- name: Use Node.js
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 10.x
1218

13-
steps:
14-
- name: GitHub Pages Deploy
15-
uses: maxheld83/ghpages@v0.2.1
16-
19+
- name: yarn install and test
20+
run: |
21+
cd side
22+
yarn
23+
yarn build
24+
25+
- name: Deploy
26+
uses: peaceiris/actions-gh-pages@v2
27+
env:
28+
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
29+
PUBLISH_BRANCH: gh-pages
30+
PUBLISH_DIR: ./side/build

0 commit comments

Comments
 (0)