Skip to content

Commit

Permalink
attempting to publish fully from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Jun 1, 2022
1 parent a7fc02d commit 40f9e8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
id 'java'
id 'maven-publish'
id 'signing'
//id 'maven'
id 'io.codearte.nexus-staging' version '0.30.0'

}

Expand All @@ -34,6 +34,12 @@ group='com.neuronrobotics'
archivesBaseName='mujoco-java'
version = System.getenv("VERSION_SEMVER")

nexusStaging {
packageGroup = 'com.neuronrobotics'
serverUrl='https://oss.sonatype.org/service/local/'
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}

publishing {

Expand Down
1 change: 1 addition & 0 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ gpg1 --list-secret-keys --keyid-format LONG
ls -al $HOME/.gnupg/

./gradlew publish -Psigning.secretKeyRingFile=$HOME/.gnupg/secring.gpg -Psigning.password=$OSSRH_GPG_SECRET_KEY_PASSWORD -Psigning.keyId=$OSSRH_GPG_SECRET_KEY_ID
./gradlew closeAndReleaseRepository -PnexusUsername=$MAVEN_USERNAME -PnexusPassword=$MAVEN_PASSWORD

0 comments on commit 40f9e8d

Please sign in to comment.