aboutsummaryrefslogtreecommitdiff
path: root/aux/workflow/dist.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-08-28 08:43:04 -0300
committerEuAndreh <eu@euandre.org>2021-08-28 08:43:04 -0300
commit2724c1f130cc53a60e6d24b97c3ccdd80f73e60f (patch)
treecde4e52469676680e8abbf82cccadab94c111439 /aux/workflow/dist.sh
parentaux/workflow/dist.sh: Prevent release being made outside the "main" branch (diff)
downloadgit-permalink-2724c1f130cc53a60e6d24b97c3ccdd80f73e60f.tar.gz
git-permalink-2724c1f130cc53a60e6d24b97c3ccdd80f73e60f.tar.xz
aux/workflow/dist.sh: Add prompt to automatically run publishing commands
Diffstat (limited to 'aux/workflow/dist.sh')
-rwxr-xr-xaux/workflow/dist.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/aux/workflow/dist.sh b/aux/workflow/dist.sh
index a8ec82f..e5971b8 100755
--- a/aux/workflow/dist.sh
+++ b/aux/workflow/dist.sh
@@ -76,7 +76,11 @@ git tag "$VVERSION"
sh aux/workflow/sign-tarballs.sh -n "$PROJECT"
-cat <<EOF >&2
+printf 'Publish version? [Y/n]: ' >&2
+read -r publish
+
+if [ "$publish" = 'n' ]; then
+ cat <<EOF >&2
Now push the tag and the signature before pushing the commit:
git push origin refs/notes/signatures/tar.gz -o skip-ci --no-verify
@@ -84,3 +88,8 @@ git push --tags -o skip-ci --no-verify
git push
EOF
+else
+ git push origin refs/notes/signatures/tar.gz -o skip-ci --no-verify
+ git push --tags -o skip-ci --no-verify
+ git push
+fi