release process

This commit is contained in:
nick comer
2024-05-02 19:10:06 -04:00
parent b826ce9c63
commit 78dbf9eaab
5 changed files with 89 additions and 6 deletions

14
tag.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
set -euo pipefail
[ -n "${TRACE:-}" ] && set -x
current_tag="$(git describe --tags --abbrev=0)"
next_tag="$(datever increment "$current_tag")"
if [[ "$(git describe --exact-match --tags 2>/dev/null)" != "" ]]; then
echo "Current commit is already tagged; quiting..."
exit 1
fi
git tag "$next_tag"