Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rotgruengelb authored Apr 7, 2024
1 parent 37c12b9 commit 23f5f6d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ jobs:
OSSRH_PASSWORD: ${{secrets.OSSRH_TOKEN}}
OSSRH_URL: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
PUBLISH_TYPE: "CENTRAL"

# Step 7.2
# Obviously required step
- name: Publish package
# wrapped the signing.password with single quotes as the password could contain special characters
run: ./gradlew publish -Psigning.keyId='${{secrets.OSSRH_GPG_SECRET_KEY_ID}}' -Psigning.password='${{secrets.OSSRH_GPG_SECRET_KEY_PASSWORD}}' -Psigning.secretKeyRingFile=$(echo ~/.gradle/secring.gpg) --warn --stacktrace
env:
OSSRH_USERNAME: ${{secrets.RGGM_USERNAME}}
OSSRH_PASSWORD: ${{secrets.RGGM_TOKEN}}
OSSRH_URL: "https://maven.rotgruengelb.net/releases"
PUBLISH_TYPE: "CENTRAL"

# Step 8
# Optional step, will enable you to see what you have released as well here on GitHub
Expand Down

0 comments on commit 23f5f6d

Please sign in to comment.