forked from jmug/stoatchat
chore: faster tag and release procedure
This commit is contained in:
3
justfile
3
justfile
@@ -14,3 +14,6 @@ minor:
|
|||||||
|
|
||||||
major:
|
major:
|
||||||
cargo release version major --execute
|
cargo release version major --execute
|
||||||
|
|
||||||
|
release:
|
||||||
|
scripts/try-tag-and-release.sh
|
||||||
|
|||||||
14
scripts/try-tag-and-release.sh
Executable file
14
scripts/try-tag-and-release.sh
Executable file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
date=$(date +'%Y%m%d')
|
||||||
|
incr=1
|
||||||
|
|
||||||
|
while [ $(git tag -l "$date-$incr") ]; do
|
||||||
|
incr=$((incr+1))
|
||||||
|
done
|
||||||
|
|
||||||
|
tag=$date-$incr
|
||||||
|
echo About to tag and push $tag in 3 seconds...
|
||||||
|
sleep 3s
|
||||||
|
|
||||||
|
git tag $tag
|
||||||
|
git push --atomic origin $(git rev-parse --abbrev-ref HEAD) $tag
|
||||||
Reference in New Issue
Block a user