add helper script to tag release
This commit is contained in:
parent
d61a9fa4a9
commit
6611404992
2 changed files with 14 additions and 0 deletions
|
@ -11,6 +11,7 @@ homepage = "https://hllmn.net/projects/jotdown"
|
||||||
repository = "https://github.com/hellux/jotdown"
|
repository = "https://github.com/hellux/jotdown"
|
||||||
documentation = "https://docs.rs/jotdown"
|
documentation = "https://docs.rs/jotdown"
|
||||||
exclude = [
|
exclude = [
|
||||||
|
"contrib",
|
||||||
".github",
|
".github",
|
||||||
".gitmodules",
|
".gitmodules",
|
||||||
"Makefile",
|
"Makefile",
|
||||||
|
|
13
contrib/tag-release.sh
Executable file
13
contrib/tag-release.sh
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
c_awk_latest='
|
||||||
|
/^## \[.*\]/ {if (latest) exit; else {latest=1; next}}
|
||||||
|
latest {print}
|
||||||
|
'
|
||||||
|
|
||||||
|
tag=$(grep ^version Cargo.toml | cut -d" " -f3 | tr -d '"')
|
||||||
|
changes=$(awk "$c_awk_latest" CHANGELOG.md | tail -n+2)
|
||||||
|
|
||||||
|
git -c core.commentchar='%' tag --edit \
|
||||||
|
-m "Release $tag" \
|
||||||
|
-m "$changes" \
|
||||||
|
"$tag"
|
||||||
|
git push github master "$tag"
|
Loading…
Reference in a new issue