Skip to content

Commit

Permalink
Merge pull request #32 from jabibamman/doc/publish-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jabibamman authored Nov 14, 2023
2 parents 5d2ac60 + 82f80ee commit 71df860
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/rust-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: RustDoc Deployment

on:
push:
branches:
- master

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
commit_message: ${{ github.event.head_commit.message }}

3 changes: 1 addition & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ env:

jobs:
build:

runs-on: ubuntu-latest

environment: production
steps:
- uses: actions/checkout@v3

Expand Down

0 comments on commit 71df860

Please sign in to comment.