Skip to content

Commit

Permalink
ci: add docs build
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Dec 16, 2023
1 parent 13705bc commit 255164d
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Docs

on:
push:
branches:
- main

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

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

env:
CARGO_TERM_COLOR: always

jobs:
docs:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- uses: actions/checkout@v3
- name: Build docs
run: cargo doc --no-deps
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: target/doc
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3

0 comments on commit 255164d

Please sign in to comment.