Add script for tagging

This commit is contained in:
Jeremy Soller
2024-08-05 10:13:08 -06:00
parent dd6f8864ee
commit 11e25b3b85
Executable
+29
View File
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
set -e
TAG="$1"
if [ -z "$TAG" ]
then
echo "$0 [tag]" >&2
exit 1
fi
echo "Do you want to tag the current state of cosmic-epoch with the tag $TAG? (y/N)"
read answer
if [ "$answer" != "y" ]
then
echo "Did not answer y, exiting" >&2
exit 1
fi
set -x
git fetch --recurse-submodules
git tag --force "$TAG"
git submodule foreach git tag --force "$TAG"
git push --force origin tag "$TAG"
git submodule foreach git push --force origin tag "$TAG"