Skip to content

feat(publish): Get ready to publish to crates.io #35

feat(publish): Get ready to publish to crates.io

feat(publish): Get ready to publish to crates.io #35

Workflow file for this run

name: docs
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Create docs
run: |
cargo clean --doc
cargo doc --all --no-deps
mv target/doc/mod_installer target/doc/rust_docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: target/doc
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4