Skip to content

Commit 8d69bc6

Browse files
update release.sh
1 parent 9178ab0 commit 8d69bc6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

release.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,22 @@
2020
echo "===================================="
2121
read -p "Enter Release: " releaseVersion
2222
read -p "Enter Next Release (SNAPSHOT): " nextVersion
23-
read -p "Enter Github Username: " username
24-
read -s -p "Enter Github Password: " password
23+
read -s -p "Enter Github Token: " token
2524

2625
# Update to release
2726
mvn versions:set -DnewVersion="$releaseVersion"
2827

2928
git add .
3029
git commit -m "Release $releaseVersion"
31-
git push "https://$username:$password@github.com/project-openubl/xbuilder.git"
30+
git push "https://$token@github.com/project-openubl/xbuilder.git"
3231

3332
# Create tag and push
3433
git tag "$releaseVersion"
35-
git push "https://$username:$password@github.com/project-openubl/xbuilder.git" --tags
34+
git push "https://$token@github.com/project-openubl/xbuilder.git" --tags
3635

3736
# Create next snapshot
3837
mvn versions:set -DnewVersion="$nextVersion-SNAPSHOT"
3938

4039
git add .
4140
git commit -m "Prepare next release $nextVersion-SNAPSHOT"
42-
git push "https://$username:$password@github.com/project-openubl/xbuilder.git"
41+
git push "https://$token@github.com/project-openubl/xbuilder.git"

0 commit comments

Comments
 (0)