File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 20
20
echo " ===================================="
21
21
read -p " Enter Release: " releaseVersion
22
22
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
25
24
26
25
# Update to release
27
26
mvn versions:set -DnewVersion=" $releaseVersion "
28
27
29
28
git add .
30
29
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"
32
31
33
32
# Create tag and push
34
33
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
36
35
37
36
# Create next snapshot
38
37
mvn versions:set -DnewVersion=" $nextVersion -SNAPSHOT"
39
38
40
39
git add .
41
40
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"
You can’t perform that action at this time.
0 commit comments