Skip to content

Commit 2ab4052

Browse files
committed
adds doc deploy action
1 parent 45c2726 commit 2ab4052

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build and Deploy Docs
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
build-and-deploy-docs:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/[email protected]
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v2
14+
with:
15+
node-version: '14.x'
16+
# Pre-check to validate that versions match between package.json
17+
# and package-lock.json. Needs to run before npm install
18+
- name: Validate package.json and package-lock.json versions
19+
run: node version-check.js
20+
- name: Install dependencies
21+
run: npm ci
22+
- name: Build docs
23+
run: npm run docs
24+
25+
- name: Deploy docs
26+
uses: JamesIves/[email protected]
27+
with:
28+
branch: gh-pages # The branch the action should deploy to.
29+
folder: docs # The folder the action should deploy.

0 commit comments

Comments
 (0)