forked from keycloak/keycloak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.sh
executable file
·46 lines (29 loc) · 1.43 KB
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash -e
DIR="$PWD"
source release-details
echo "Version: $VERSION"
echo "------------------------------------------------------------------------------------------------------------"
echo "Building:"
echo ""
mvn -Pjboss-release,distribution-downloads -DskipTests -DskipTestsuite clean install
echo "------------------------------------------------------------------------------------------------------------"
echo "Deploying:"
echo ""
mvn -Pjboss-release,nexus-staging -DretryFailedDeploymentCount=10 -DskipTests -DskipTestsuite -DskipExamples -DautoReleaseAfterClose=true deploy
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
unzip $DIR/distribution/adapters/js-adapter-npm-zip/target/keycloak-js-adapter-npm-dist-$VERSION.zip
cd keycloak-js-adapter-npm-dist-$VERSION
npm publish
cd $DIR
rm -rf $TMP
echo "------------------------------------------------------------------------------------------------------------"
echo "Done"
echo "------------------------------------------------------------------------------------------------------------"