Skip to content

Commit

Permalink
Add GitHub action to autogenerate ref docs on commut to master.
Browse files Browse the repository at this point in the history
  • Loading branch information
taeold committed Nov 22, 2024
1 parent 0479103 commit e1455ff
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: docs

on:
push:
branches:
- main

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "20"
- name: Cache npm
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-docgen-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Generate Reference Docs
run: |
npm run docgen:v1
npm run docgen:v2
- uses: actions/upload-artifact@v3
name: Upload Docs Preview
with:
name: reference-docs
path: |
./docgen/v1/markdown/
./docgen/v2/markdown/

0 comments on commit e1455ff

Please sign in to comment.