ci: Build Storybook docs in CI

This commit is contained in:
Quentin Gliech
2023-01-27 15:31:00 +01:00
parent e12e327c2a
commit bcea592c04
2 changed files with 20 additions and 0 deletions

View File

@@ -35,12 +35,27 @@ jobs:
with:
mdbook-version: '0.4.25'
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install Node dependencies
working-directory: ./frontend
run: npm ci
- name: Build the documentation
run: mdbook build
- name: Build rustdoc
run: cargo doc -Zrustdoc-map --workspace --lib --no-deps
- name: Build storybook
working-directory: ./frontend
run: npx storybook build -o ../target/book/storybook
- name: Move the Rust documentation within the mdBook
run: mv target/doc target/book/rustdoc