Skip to content

Commit

Permalink
build(github): deploy docs to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Mar 24, 2023
1 parent 797eabf commit 0cc2a9d
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,30 @@ jobs:
run: cargo fmt --all -- --check

docs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: ./.github/actions/deps
- name: Check documentation generation

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Generate documentation
shell: bash
env:
RUSTDOCFLAGS: "--cfg docsrs"
run: cargo doc --no-deps --all-features

- name: Upload docs
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: "target/doc"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 0cc2a9d

Please sign in to comment.