Skip to content

Commit

Permalink
ci: force signing
Browse files Browse the repository at this point in the history
Signed-off-by: Mariell Hoversholm <[email protected]>
  • Loading branch information
Mariell Hoversholm committed Dec 3, 2021
1 parent 0a56f13 commit 4f2df73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-sonatype.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ jobs:
java-version: '17'
distribution: temurin
- name: Deploy to OSSRH
run: ./gradlew publish --no-daemon
run: ./gradlew -PforceSign=true publish --no-daemon
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
- name: Deploy to Central
if: ${{ github.ref_type == 'tag' }}
run: ./gradlew closeAndReleaseSonatypeStagingRepository --no-daemon
run: ./gradlew -PforceSign=true closeAndReleaseSonatypeStagingRepository --no-daemon
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
Expand Down

0 comments on commit 4f2df73

Please sign in to comment.