forked from discoverydns/ddns-dnsjava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·7 lines (6 loc) · 846 Bytes
/
deploy.sh
File metadata and controls
executable file
·7 lines (6 loc) · 846 Bytes
1
2
3
4
5
6
7
#!/bin/sh
VERSION=`grep version pom.xml | head -2 |tail -1 | cut -f 2 -d '>' | cut -f 1 -d '<'`
echo Deploying ddns-dnsjava-$VERSION
mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -DpomFile=target/ddns-dnsjava-$VERSION.pom -Dfile=target/ddns-dnsjava-$VERSION.jar
mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -DpomFile=target/ddns-dnsjava-$VERSION.pom -Dfile=target/ddns-dnsjava-$VERSION-sources.jar -Dclassifier=sources
mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -DpomFile=target/ddns-dnsjava-$VERSION.pom -Dfile=target/ddns-dnsjava-$VERSION-javadoc.jar -Dclassifier=javadoc