Skip to content

Commit 894f919

Browse files
feat: add release script
1 parent 9751123 commit 894f919

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

release.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
# This script is used to release the Optimizely Java SDK.
6+
7+
# Usage:
8+
# ./release.sh <release_version>
9+
10+
if [ -z "$1" ]; then
11+
echo "Usage: ./release.sh <release_version>"
12+
exit 1
13+
fi
14+
15+
RELEASE_VERSION=$1
16+
17+
# Create a new tag
18+
git tag -a "$RELEASE_VERSION" -m "Release $RELEASE_VERSION"
19+
20+
# Push the tag to the master branch
21+
git push origin "$RELEASE_VERSION"

0 commit comments

Comments
 (0)