forked from SK-EID/smart-id-java-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublish.sh
More file actions
executable file
·28 lines (16 loc) · 711 Bytes
/
publish.sh
File metadata and controls
executable file
·28 lines (16 loc) · 711 Bytes
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
#!/bin/bash
project="smart-id-java-client"
version=$TRAVIS_TAG
staging_url="https://oss.sonatype.org/service/local/staging/deploy/maven2/"
repositoryId="ossrh"
artifact=$project-$version
gpg --import ./private.key
./mvnw versions:set -DnewVersion=$TRAVIS_TAG
./mvnw package
gpg -ab pom.xml
cd target
gpg -ab $artifact.jar
gpg -ab $artifact-sources.jar
gpg -ab $artifact-javadoc.jar
jar -cvf bundle.jar ../pom.xml ../pom.xml.asc $artifact.jar $artifact.jar.asc $artifact-javadoc.jar $artifact-javadoc.jar.asc $artifact-sources.jar $artifact-sources.jar.asc
curl -ujorlina2 -u $SONATYPEUN:$SONATYPEPW --request POST -F "file=@bundle.jar" "https://oss.sonatype.org/service/local/staging/bundle_upload"