Skip to content

Commit

Permalink
try docs wf
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed Apr 26, 2024
1 parent 2a5a9e2 commit 6dcb021
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Docs
on:
push:
branches: [main]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: deploy
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: cargo clean
run: cargo clean --doc
- name: cargo docs
run: cargo doc --no-deps
- name: meta redirect
run: echo '<meta http-equiv="refresh" content="0;url=aoc/index.html">' > target/doc/index.html
deploy:
name: Deploy
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: gh-pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 6dcb021

Please sign in to comment.