In the root of your git repo run:
git submodule add https://github.com/DaRacci/cog-scripts.gitThis will add the cog-scripts repo as a submodule to your repo, Which will make keeping them up-to-date easier.
Inside cog.toml, add the following:
pre_bump_hooks = [
"nu -c \"cog-scripts/src/pre-bump.nu {{latest}} {{version}}\"",
]
post_bump_hooks = [
"nu -c \"cog-scripts/src/post-bump.nu {{name}} {{latest}} {{version}} {{version+patch-SNAPSHOT}}\"",
]
Replacing {{name}} with your projects name.
If you want to auto-publish to Maven and make a GitHub Release append post-bump with -r.
To Define what projects or subprojects to publish append post-bump with -p [gradle paths] (separated by ',' and no spaces), use '.' to represent the root project, All supplied subprojects must have a publish task defined.