Skip to content

Year 2018 Day 15

Year 2018 Day 15 #350

Workflow file for this run

name: Docs
on:
push:
branches: docs
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- run: cargo doc
env:
RUSTDOCFLAGS: "--document-private-items --default-theme=ayu --deny warnings"
- run: rm target/doc/.lock
- run: cp docs/* target/doc
- uses: actions/upload-pages-artifact@v3
with:
path: 'target/doc'
- uses: actions/configure-pages@v4
- uses: actions/deploy-pages@v4
id: deployment