Skip to content

Commit

Permalink
test: add rustdoc deployment job
Browse files Browse the repository at this point in the history
  • Loading branch information
jabibamman committed Nov 14, 2023
1 parent 5d2ac60 commit 68cf23d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/rust-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: RustDoc Deployment

on:
push:
branches:
- doc/publish-doc

jobs:
deploy-docs:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build RustDoc
run: cargo doc --no-deps

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.DEPLOY_KEY }}
publish_dir: ./target/doc

0 comments on commit 68cf23d

Please sign in to comment.