From 2724c1f130cc53a60e6d24b97c3ccdd80f73e60f Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 28 Aug 2021 08:43:04 -0300 Subject: aux/workflow/dist.sh: Add prompt to automatically run publishing commands --- aux/workflow/dist.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 <&2 +printf 'Publish version? [Y/n]: ' >&2 +read -r publish + +if [ "$publish" = 'n' ]; then + cat <&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 -- cgit v1.2.3