Skip to content

Commit

Permalink
Publishing staging version with io.github.gradle-nexus.publish-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
vsuharnikov committed Oct 12, 2023
1 parent 2969e87 commit e7cd793
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ jobs:
# About -q: https://github.com/gradle/gradle/issues/5098#issuecomment-1084652709
VERSION=$(./gradlew -q $GRADLE_EXTRA_ARGS printVersion)
# PUBLISHING_TYPE=$(./gradlew -q $GRADLE_EXTRA_ARGS publishingType)
PUBLISHING_TYPE=staging
PUBLISHING_TYPE=$(./gradlew -q $GRADLE_EXTRA_ARGS publishingType)
# echo "$GITHUB_CONTEXT" # For debugging purposes
Expand Down Expand Up @@ -179,8 +178,7 @@ jobs:
if: ${{ env.PUBLISHING_TYPE == 'staging' }}
run: |
cd zwaves_jni/javalib
# ./gradlew ${GRADLE_EXTRA_ARGS} publishToSonatype closeAndReleaseSonatypeStagingRepository \
./gradlew -PrefName=v0.1.7 publishToSonatype \
./gradlew ${GRADLE_EXTRA_ARGS} publishToSonatype closeAndReleaseSonatypeStagingRepository \
-PsonatypeUsername='${{ secrets.OSSRH_USERNAME }}' \
-PsonatypePassword='${{ secrets.OSSRH_PASSWORD }}' \
-PgpgKey='${{ secrets.OSSRH_GPG_KEY_ASCII }}' \
Expand Down
4 changes: 1 addition & 3 deletions zwaves_jni/javalib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ ext {
}

artifactVersion = {
if (pr()?.isNumber()) "${baseVersion}-${pr()}-SNAPSHOT"
else baseVersion
if (pr()?.isNumber()) "${baseVersion}-${pr()}-SNAPSHOT" else baseVersion
}
}

Expand Down Expand Up @@ -59,7 +58,6 @@ publishing {
pom {
packaging = 'jar'
url = 'https://github.com/wavesplatform/zwaves'

licenses {
license {
name.set("MIT License")
Expand Down

0 comments on commit e7cd793

Please sign in to comment.