Skip to content

Commit

Permalink
fix(*): fix release CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Apr 1, 2022
1 parent 80fe992 commit e9a2a79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@ jobs:
env:
GPG_KEYRING_FILE_CONTENT: "${{ secrets.GPG_KEYRING_FILE_CONTENT }}"
- name: Publish package
uses: gradle/gradle-build-action@v2
with:
arguments: |
publish
-Psigning.secretKeyRingFile=$(echo ~/secring.gpg)
-Psigning.password=$GPG_PASSPHRASE
-Psigning.keyId=$GPG_KEY_ID
run: gradle publish -Psigning.secretKeyRingFile=$(echo ~/secring.gpg) -Psigning.password=$GPG_PASSPHRASE -Psigning.keyId=$GPG_KEY_ID
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ afterEvaluate {
maven {
name = "OSSRH"
if (!isReleasedVersion) {
url "https://oss.sonatype.org/content/repositories/snapshots"
url "https://s01.oss.sonatype.org/content/repositories/snapshots"
} else {
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2"
}
credentials {
username = System.getenv("MAVEN_USERNAME")
Expand Down

0 comments on commit e9a2a79

Please sign in to comment.