Skip to content

Commit

Permalink
Add docs action
Browse files Browse the repository at this point in the history
  • Loading branch information
FlareFlo committed Feb 12, 2025
1 parent e60c15e commit b6e1108
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docs_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy Rust Docs

on:
push:
branches:
- master

permissions:
contents: read
pages: write
id-token: write # Required for GitHub Pages deployment

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Build Documentation
run: cargo doc --no-deps --document-private-items

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

- name: Upload Documentation Artifact
uses: actions/upload-pages-artifact@v2
with:
path: target/doc

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v2

0 comments on commit b6e1108

Please sign in to comment.