Commit
Message
Changed Files (3)
-
modified CHANGELOG.md
diff --git a/CHANGELOG.md b/CHANGELOG.md index 48c7fa2..07cf56a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Add core site generator with builders and templates - Add changelog task and wire into build +- Add release task and bump for changelog ### 🐛 Bug Fixes -
modified Cargo.toml
diff --git a/Cargo.toml b/Cargo.toml index fc8fb36..af12457 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ version = "0.1.0" authors = ["ololduck <ololduck@vit.am>"] license = "AGPL-3.0-or-later" edition = "2024" +publish = false [dependencies] figment = { version = "0.10.19", features = ["env", "toml"] } -
modified mise.toml
diff --git a/mise.toml b/mise.toml index b18951d..43f3816 100644 --- a/mise.toml +++ b/mise.toml @@ -1,8 +1,10 @@ [tools] "aqua:blopker/codebook" = "latest" "cargo:cargo-readme" = "latest" +"cargo:cargo-semver-checks" = "latest" git-cliff = "latest" prek = "latest" +release-plz = "latest" rust = "1.95" taplo = "latest" @@ -35,7 +37,13 @@ sources = ["src/main.rs"] [tasks.generate-changelog] description = "generates a changelog from git commits" -run = ["git-cliff --output CHANGELOG.md"] +run = [ + "git-cliff $(if [[ \"${usage_bump:-false}\" == \"true\" ]]; then echo -n '--bump'; fi) --output ${usage_output}" +] +usage = """ +flag "-b --bump" help="bump level" +flag "-o --output <file>" help="output file path" default="CHANGELOG.md" +""" outputs = ["CHANGELOG.md"] [tasks.build] @@ -50,3 +58,13 @@ depends = ["generate-readme", "generate-changelog"] description = "build the project in release mode" run = ["cargo build --release"] sources = ["Cargo.toml", "Cargo.lock", "*.rs", "**/*.rs"] + +[tasks.release] +confirm = "Are you sure you want to release?" +description = "release the project" +run = [ + "release-plz update", + "git commit -am \"chore: release\"", + "release-plz release" +] +sources = ["Cargo.toml", "Cargo.lock", "*.rs", "**/*.rs"]