Skip to content

Docs

Docs #505

Workflow file for this run

name: Docs
on:
schedule:
- cron: '0 0/4 * * *'
push:
branches:
- main
jobs:
rustdoc:
name: Rustdoc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: 'dudykr/stc'
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
- uses: Swatinem/rust-cache@v2
with:
key: "rustdoc"
cache-targets: true
cache-on-failure: true
- name: Create rustdoc
run: cargo doc --all --workspace --document-private-items
- name: Create CNAME
run: |
echo 'rustdoc.stc.dudy.dev' > target/doc/CNAME
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.8
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
branch: gh-pages
folder: target/doc
clean: true
git-config-email: bot@swc.rs
repository-name: dudykr/stc-rustdoc
commit-message: "Update rustdoc"
single-commit: true