-
Notifications
You must be signed in to change notification settings - Fork 23
34 lines (33 loc) · 889 Bytes
/
gh-pages.yml
File metadata and controls
34 lines (33 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: GHPages
on:
push:
branches:
- master
jobs:
publish:
name: GHPages
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Build Docs
run: cd ./usage && npm ci && npm run build
- name: Publish docs
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./usage/dist
user_name: 'Github Actions'
user_email: 'sebastien.jourdain@kitware.com'
commit_message: ${{ github.event.head_commit.message }}