2021-08-06 17:49:38 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
VERSION=`./get-version.sh`
|
|
|
|
echo "Version: $VERSION"
|
|
|
|
|
|
|
|
echo "------------------------------------------------------------------------------------------------------------"
|
|
|
|
echo "Building:"
|
|
|
|
echo ""
|
|
|
|
|
2021-12-15 13:00:56 +00:00
|
|
|
mvn --file=./keycloak-theme/pom.xml -Pnexus-staging -DretryFailedDeploymentCount=10 -DautoReleaseAfterClose=true clean deploy
|
2021-08-06 17:49:38 +00:00
|
|
|
|
|
|
|
echo "------------------------------------------------------------------------------------------------------------"
|
|
|
|
echo "Create tag:"
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
git tag $VERSION
|
|
|
|
git push origin $VERSION
|
|
|
|
|
|
|
|
echo "------------------------------------------------------------------------------------------------------------"
|
|
|
|
echo "Upload to GitHub releases:"
|
|
|
|
echo ""
|
|
|
|
|
2021-12-15 13:00:56 +00:00
|
|
|
hub release create -m "$VERSION" $VERSION
|