Skip to content

Commit

Permalink
add docs build action
Browse files Browse the repository at this point in the history
  • Loading branch information
sslivkoff committed Jan 28, 2024
1 parent 955bb90 commit fa7295b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy docs to GitHub Pages

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install mdBook
run: cargo install mdbook
- name: Build mdBook
run: mdbook build docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book

0 comments on commit fa7295b

Please sign in to comment.