Generate documentation and publish to github pages
This commit is contained in:
parent
94a1bbdaa5
commit
5081440c41
1 changed files with 21 additions and 0 deletions
21
.github/workflows/pages.yml
vendored
Normal file
21
.github/workflows/pages.yml
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
name: Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
pages:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build documentation
|
||||
run: cargo doc --verbose
|
||||
- name: Deploy documentation
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./target/doc
|
||||
Loading…
Add table
Add a link
Reference in a new issue