Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
refactor release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 committed Oct 10, 2020
1 parent c82345d commit 8bfa102
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,22 @@
echo "===================================="
read -p "Enter Release: " releaseVersion
read -p "Enter Next Release (SNAPSHOT): " nextVersion
read -p "Enter Github Username: " username
read -s -p "Enter Github Password: " password
read -s -p "Enter Github Token: " token

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

git add .
git commit -m "Release $releaseVersion"
git push "https://$username:$password@github.com/project-openubl/xbuilder-server.git"
git push "https://$token@github.com/project-openubl/xbuilder-server.git"

# Create tag and push
git tag "$releaseVersion"
git push "https://$username:$password@github.com/project-openubl/xbuilder-server.git" --tags
git push "https://$token@github.com/project-openubl/xbuilder-server.git" --tags

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

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

0 comments on commit 8bfa102

Please sign in to comment.