-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a02031a
commit 371c62c
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
project="cdoc4j" | ||
version="1.1" | ||
staging_url="https://oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
repositoryId="ossrh" | ||
|
||
# Starting GPG agent to store GPG passphrase so we wouldn't have to enter the passphrase every time | ||
eval $(gpg-agent --daemon --no-grab) | ||
export GPG_TTY=$(tty) | ||
export GPG_AGENT_INFO | ||
|
||
artifact="target/$project-$version" | ||
|
||
echo "Deploying $project-$version" | ||
|
||
mvn gpg:sign-and-deploy-file -DpomFile=pom.xml -Dfile=$artifact.jar -Durl=$staging_url -DrepositoryId=$repositoryId | ||
mvn gpg:sign-and-deploy-file -DpomFile=pom.xml -Dfile=$artifact-sources.jar -Dclassifier=sources -Durl=$staging_url -DrepositoryId=$repositoryId | ||
mvn gpg:sign-and-deploy-file -DpomFile=pom.xml -Dfile=$artifact-javadoc.jar -Dclassifier=javadoc -Durl=$staging_url -DrepositoryId=$repositoryId | ||
|
||
echo "Finished deployment" | ||
|
||
killall gpg-agent |