[package]
versioned_files = ["Cargo.toml"]
changelog = "CHANGELOG.md"
[[workflows]]
name = "document-change"
[[workflows.steps]]
type = "CreateChangeFile"
[[workflows]]
name = "prepare-release"
[[workflows.steps]]
type = "Command"
command = "git switch -c release"
[[workflows.steps]]
type = "PrepareRelease"
[[workflows.steps]]
type = "Command"
command = "git commit -m \"chore: prepare release $version\""
[[workflows.steps]]
type = "Command"
command = "git push --force --set-upstream origin release"
[workflows.steps.variables]
"$version" = "Version"
[[workflows.steps]]
type = "CreatePullRequest"
base = "main"
[workflows.steps.title]
template = "chore: prepare release $version"
variables = { "$version" = "Version" }
[workflows.steps.body]
template = "$changelog"
variables = { "$changelog" = "ChangelogEntry" }
[[workflows]]
name = "release"
[[workflows.steps]]
type = "Release"
[[workflows]]
name = "get-version"
help_text = "Get the current version of the project"
[[workflows.steps]]
type = "Command"
command = "echo \"$version\""
[workflows.steps.variables]
"$version" = "Version"
[github]
owner = "d-corler"
repo = "uddf-sdk"