We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af7f371 commit 07f211aCopy full SHA for 07f211a
dev-bin/make-release.sh
@@ -2,11 +2,6 @@
2
3
set -e
4
5
-if [ -n "$(git status --porcelain)" ]; then
6
- echo ". is not clean." >&2
7
- exit 1
8
-fi
9
-
10
VERSION=$(perl -MFile::Slurp::Tiny=read_file -MDateTime <<EOF
11
use v5.16;
12
my \$log = read_file(q{CHANGELOG.md});
@@ -20,9 +15,13 @@ perl -pi -e "s/(?<=#define PHP_MAXMINDDB_VERSION \")\d+\.\d+\.\d+(?=\")/$VERSION
20
15
21
16
git diff
22
17
23
-git commit -m "Bumped version to $VERSION" -a
18
+if [ -n "$(git status --porcelain)" ]; then
19
+ git commit -m "Bumped version to $VERSION" -a
+fi
24
25
-git tag -a -m "Release for $VERSION" "v$VERSION"
+TAG="v$VERSION"
+echo "Creating tag $TAG"
+git tag -a -m "Release for $VERSION" "$TAG"
26
27
28
read -p "Push to origin? (y/n) " SHOULD_PUSH
0 commit comments