Add docs CI and fix docs build (#176)
* Add docs CI and fix docs build * Fix CI name
This commit is contained in:
27
.github/workflows/ci-docs.yaml
vendored
Normal file
27
.github/workflows/ci-docs.yaml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: CI Docs
|
||||
on:
|
||||
push:
|
||||
jobs:
|
||||
docs-build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "18"
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
- name: Docs / Install Dependencies
|
||||
run: cd docs && npm install
|
||||
- name: Docs / Build Documentation
|
||||
run: cd docs && npm run build
|
||||
Reference in New Issue
Block a user