Skip to content

Commit

Permalink
docs deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-v committed Feb 6, 2025
1 parent 70644af commit f708182
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/rust-doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ jobs:
name: "Rust Docs"
runs-on: ubuntu-latest
permissions:
contents: write
contents: read
pages: write
id-token: write

steps:
- uses: actions/checkout@v4
Expand All @@ -30,9 +32,18 @@ jobs:
- name: Build documentation
run: ./rebuild_docs.sh

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './target/doc'

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
id: deployment
uses: actions/deploy-pages@v4
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc
permissions:
pages: write
id-token: write

0 comments on commit f708182

Please sign in to comment.