Skip to content

Commit

Permalink
👷 adds docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chriamue committed Dec 25, 2023
1 parent c1ac4a0 commit 2c0002f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Rust Docs

on:
push:
branches:
- main

jobs:
build_docs:
name: Build and Deploy Rust Docs
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Build Documentation
run: cargo doc --all-features --no-deps

- name: Deploy Documentation to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./target/doc
keep_files: true

0 comments on commit 2c0002f

Please sign in to comment.