cargo-release icon indicating copy to clipboard operation
cargo-release copied to clipboard

Feature request: post-release-hook

Open Person-93 opened this issue 2 years ago • 6 comments

Is running a post release hook within the scope of this project? I see that it's mentioned here as something that might be considered. Would you accept a PR that implements it?

My use case is to push additional git tags. If the new version is 2.6.22, I'd want three tags applied to that commit: v2, v2.6, and v2.6.22. The last one is already handled by cargo-release, but I'd like to add some custom logic at the end of the process for the other two tags.

Person-93 avatar Mar 29 '22 14:03 Person-93

post-release hook sounds reasonable.

epage avatar Mar 29 '22 14:03 epage

@epage do you have a "workflow" in mind to combine GitHub Releases, GitHub Actions and the usage of Cargo Release? Maybe worth document it, as someone can automate the creation of tags starting from GitHub Releases.

psandana avatar Apr 17 '24 14:04 psandana

We have a FAQ entry for that: https://github.com/crate-ci/cargo-release/blob/master/docs/faq.md#how-do-i-automate-creating-a-release-on-github

epage avatar Apr 17 '24 20:04 epage

@epage, is there a way to create annotated tags instad of lightweight tags?

psandana avatar Apr 17 '24 20:04 psandana

They should be annotated; we pass -a

epage avatar Apr 17 '24 20:04 epage

They should be annotated; we pass -a

False alarm. I was not pushing the tag, but later using gh release which added a non-annotated tag. Thanks for the support.

psandana avatar Apr 18 '24 16:04 psandana