forked from LGSInnovations/react-sigplot
-
Notifications
You must be signed in to change notification settings - Fork 0
24 lines (23 loc) · 733 Bytes
/
docgen.yml
File metadata and controls
24 lines (23 loc) · 733 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
name: Build and Deploy Docs
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install and Build 🔧
run: |
npm install
npm run generate-docs
ln -s ./doc/react-sigplot/latest
- name: Set doc version
id: vars
run: echo ::set-output name=doc_version::$(grep '"version"' package.json | cut -d '"' -f 4)
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/react-sigplot/${{ steps.vars.outputs.doc_version }}