This directory contains GitHub Actions workflows for automating various tasks in the Rustic project.
File: publish-docs.yml
This workflow automatically publishes the Rust documentation to GitHub Pages whenever a new release is created.
- When a new release is created on GitHub, this workflow is triggered
- It checks out the repository code
- Sets up Rust with the stable toolchain
- Generates documentation using
cargo doc
- Deploys the generated documentation to the
gh-pages
branch
For this workflow to function properly:
- The repository needs to have GitHub Pages enabled and configured to use the
gh-pages
branch - The workflow needs proper permissions to push to the repository
To enable GitHub Pages for your documentation:
- Go to your repository's Settings
- Navigate to the "Pages" section
- Under "Source", select the
gh-pages
branch - Click "Save"
After the workflow runs for the first time and the gh-pages
branch is created, your documentation will be available at:
https://[username].github.io/rustic/
You can customize this workflow by editing the publish-docs.yml
file:
- Change when the workflow triggers (e.g., on push to main instead of on release)
- Modify the documentation generation command to include dependencies or set other options
- Adjust the GitHub Pages deployment configuration