Skip to content

Commit ce2e604

Browse files
Github workflow to automatically deploy docs
1 parent 0c36b0f commit ce2e604

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Github workflow to deploy the documentation to Github Pages
2+
3+
name: Deploy docs
4+
5+
on:
6+
push:
7+
branches:
8+
- source
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v1
16+
17+
- name: Install dependencies
18+
run: npm ci
19+
20+
- name: Build docs bundle
21+
run: npm run build
22+
23+
- name: Commit changes
24+
uses: EndBug/add-and-commit@master
25+
with:
26+
branch: "master"
27+
add: "docs/.vuepress/dist"
28+
message: "Deploy docs"
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)