Skip to content

Commit

Permalink
Update docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLBuehler committed Oct 27, 2023
1 parent 60e7dc9 commit 42f4f6a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: docs
#https://dev.to/deciduously/prepare-your-rust-api-docs-for-github-pages-2n5i
on:
push:
branches: ["master"]

workflow_dispatch:

permissions:
contents: write
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build docs
run: |
cargo doc --no-deps
rm -rf ./docs
echo "<meta http-equiv=\"refresh\" content=\"0; url=candle_lora\">" > target/doc/index.html
cp -r target/doc ./docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './docs'
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./docs

0 comments on commit 42f4f6a

Please sign in to comment.