Skip to content

Commit 4b80c8a

Browse files
committed
ci: Add github pages deploy
1 parent 47f5ec2 commit 4b80c8a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/docs.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches: [develop]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
persist-credentials: false
15+
- name: Setup Node JS
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 12.x
19+
- name: Build Docs 📚
20+
run: |
21+
# un-ignore bundle.js
22+
mv docs/.gitignore .gitignore
23+
yarn build:docs
24+
- name: Deploy Pages 🚀
25+
uses: JamesIves/github-pages-deploy-action@releases/v3
26+
with:
27+
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
BRANCH: gh-pages
29+
FOLDER: docs

0 commit comments

Comments
 (0)