make-release.sh: Allow to skip tag creation

This commit is contained in:
Johannes Meyer 2021-05-28 11:03:11 +02:00
parent 3993f8ac82
commit 4706d62837
1 changed files with 11 additions and 3 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
VERSION="$1" VERSION="$1"
NO_TAG="$2"
if [[ -z $VERSION ]]; then if [[ -z $VERSION ]]; then
echo "USAGE: $0 <version>" echo "USAGE: $0 <version>"
@ -45,7 +46,14 @@ rm -rf vendor
git checkout vendor git checkout vendor
composer validate --no-check-all --strict || fail "Composer validate failed" composer validate --no-check-all --strict || fail "Composer validate failed"
git tag -a v$VERSION -m "Version v$VERSION" if [ "$NO_TAG" != "--no-tag" ]; then
echo "Finished, tagged v$VERSION" git tag -a v$VERSION -m "Version v$VERSION"
echo "Now please run:" echo "Finished, tagged v$VERSION"
echo "Now please run:"
else
echo "Finished, but not tagged yet"
echo "Now please run:"
echo "git tag -s v$VERSION -m \"Version v$VERSION\""
fi
echo "git push origin "$BRANCH":"$BRANCH" && git push --tags" echo "git push origin "$BRANCH":"$BRANCH" && git push --tags"