Skip to content

Commit

Permalink
Maybe fix publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed Jul 19, 2022
1 parent 0aa8fca commit c9899cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
# - OSSRH_SIGNING_KEY_PASSWORD: The password for the signing key
# - OSSRH_SIGNING_KEY_RING_FILE: The key ring file, base-64 encoded.
#
# Obtaining the OSSRH_USERNAME and OSSRH_TOKEN:
#
# 1. Login into https://oss.sonatype.org/
# 2. Click your username in the top-right, go to Profile.
# 3. In the drop-down box, change from Summary to User Token.
# 4. Click the Access User Token button. It will give a username and token.
#
# Obtaining the OSSRH_SIGNING_KEY_ID:
# ```
# gpg --list-secret-keys --keyid-format SHORT
Expand Down Expand Up @@ -45,7 +52,7 @@ jobs:
- name: Publish package
uses: gradle/gradle-build-action@v2
with:
arguments: clean publish -Psigning.keyId=${{secrets.OSSRH_SIGNING_KEY_ID}} -Psigning.password=${{secrets.OSSRH_SIGNING_KEY_PASSWORD}} -Psigning.secretKeyRingFile=secring.gpg
arguments: publish -Psigning.keyId=${{secrets.OSSRH_SIGNING_KEY_ID}} -Psigning.password=${{secrets.OSSRH_SIGNING_KEY_PASSWORD}} -Psigning.secretKeyRingFile=secring.gpg
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ publishing {
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = System.getenv("OSSRH_USERNAME")
password = System.getenv("OSSRH_PASSWORD")
password = System.getenv("OSSRH_TOKEN")
}
}
}
Expand Down

0 comments on commit c9899cd

Please sign in to comment.