docs: Test building crate docs

This commit is contained in:
Lennart
2025-04-17 21:51:39 +02:00
parent 92dc69fdef
commit 9f434f06d6

View File

@@ -29,6 +29,15 @@ jobs:
- run: pip install mkdocs-material - run: pip install mkdocs-material
- run: mkdocs build --clean - run: mkdocs build --clean
- name: Save build cache
uses: actions/cache/save@v4
with:
key: mkdocs-material-${{ hashfiles('.cache/**') }}
path: .cache
- name: Build crate docs
run: cargo doc --no-deps --workspace --target-dir site/crate
- name: Upload to GitHub Pages - name: Upload to GitHub Pages
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3
with: with:
@@ -36,9 +45,3 @@ jobs:
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4 uses: actions/deploy-pages@v4
- name: Save build cache
uses: actions/cache/save@v4
with:
key: mkdocs-material-${{ hashfiles('.cache/**') }}
path: .cache