Context
This PR introduces a new GitHub Actions workflow named publish.yml, designed to automate the process of publishing our Rust package to crates.io. The workflow is triggered manually through the GitHub Actions UI, allowing maintainers to specify the version to be deployed directly.
Based on issue #2
Changes
Version Validation: Ensures the specified version follows the semantic versioning format (MAJOR.MINOR.PATCH) and is greater than the current version in Cargo.toml.
Version Bumping: Automatically updates the version in Cargo.toml to match the specified version.
Committing and Tagging: Commits the updated Cargo.toml and creates a git tag for the new version.
Publishing: Logs into crates.io using a secret token and publishes the new version.
Requirements
adding secret CARGO_TOKEN as crates.io token with possibility to push new versions
changing rights for GH-Runner to commit and push changes
Context This PR introduces a new GitHub Actions workflow named
publish.yml
, designed to automate the process of publishing our Rust package to crates.io. The workflow is triggered manually through the GitHub Actions UI, allowing maintainers to specify the version to be deployed directly. Based on issue #2Changes
Cargo.toml
.Cargo.toml
to match the specified version.Cargo.toml
and creates a git tag for the new version.crates.io
using a secret token and publishes the new version.Requirements
CARGO_TOKEN
as crates.io token with possibility to push new versions