2019-03-05 10:44:44 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
DIR="$PWD"
|
2019-03-06 10:33:57 +00:00
|
|
|
source release-details
|
|
|
|
|
2019-03-05 10:44:44 +00:00
|
|
|
echo "Version: $VERSION"
|
|
|
|
|
|
|
|
echo "------------------------------------------------------------------------------------------------------------"
|
|
|
|
echo "Building:"
|
|
|
|
echo ""
|
|
|
|
|
2019-03-06 10:33:57 +00:00
|
|
|
mvn -Pjboss-release,distribution-downloads -DskipTests -DskipTestsuite clean install
|
2019-03-05 10:44:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
echo "------------------------------------------------------------------------------------------------------------"
|
|
|
|
echo "Deploying:"
|
|
|
|
echo ""
|
|
|
|
|
2019-03-06 10:33:57 +00:00
|
|
|
mvn -Pjboss-release,nexus-staging -DretryFailedDeploymentCount=10 -DskipTests -DskipTestsuite -DskipExamples -DautoReleaseAfterClose=true deploy
|
2019-03-05 10:44:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
echo "------------------------------------------------------------------------------------------------------------"
|
|
|
|
echo "Upload to jboss.org:"
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
rsync -rv --protocol=28 distribution/downloads/target/$VERSION keycloak@filemgmt.jboss.org:/downloads_htdocs/keycloak
|
|
|
|
|
|
|
|
|
|
|
|
echo "------------------------------------------------------------------------------------------------------------"
|
|
|
|
echo "NPM release:"
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
TMP=`mktemp -d`
|
|
|
|
cd $TMP
|
2019-03-06 10:33:57 +00:00
|
|
|
unzip $DIR/distribution/adapters/js-adapter-npm-zip/target/keycloak-js-adapter-npm-dist-$VERSION.zip
|
2019-03-05 10:44:44 +00:00
|
|
|
cd keycloak-js-adapter-npm-dist-$VERSION
|
|
|
|
|
|
|
|
npm publish
|
|
|
|
|
|
|
|
cd $DIR
|
|
|
|
rm -rf $TMP
|
|
|
|
|
|
|
|
|
|
|
|
echo "------------------------------------------------------------------------------------------------------------"
|
|
|
|
echo "Done"
|
|
|
|
echo "------------------------------------------------------------------------------------------------------------"
|