Added github action

This commit is contained in:
transistor 2023-04-30 21:33:02 -07:00
parent 8b30750924
commit c6c2493e6e
1 changed files with 29 additions and 0 deletions

29
.github/workflows/deploy-docs.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: deploy-docs
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build docs
run: cargo doc --document-private-items --workspace && mv target/doc .
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1