mirror of
https://github.com/forkless/NotAlterra.git
synced 2026-08-20 10:03:35 +02:00
Add GitHub Pages doc deployment
This commit is contained in:
@@ -17,6 +17,13 @@ jobs:
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- run: cargo check --workspace
|
||||
- run: cargo doc --no-deps --document-private-items --workspace
|
||||
- name: Deploy docs to GitHub Pages
|
||||
if: github.ref == 'refs/heads/master'
|
||||
uses: peaceiris/actions-gh-pages@v4
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: target/doc
|
||||
force_orphan: true
|
||||
|
||||
build:
|
||||
needs: check
|
||||
|
||||
Reference in New Issue
Block a user