Skip to content

Commit

Permalink
Automatically close/release on publication to Sonatype (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt committed Mar 10, 2022
1 parent 18854eb commit be22caa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ jobs:
-PmavenCentralUsername="${{ secrets.OSS_SONATYPE_NEXUS_USERNAME }}"
-PmavenCentralPassword="${{ secrets.OSS_SONATYPE_NEXUS_PASSWORD }}"
publish
- run: >-
./gradlew
-PmavenCentralUsername="${{ secrets.OSS_SONATYPE_NEXUS_USERNAME }}"
-PmavenCentralPassword="${{ secrets.OSS_SONATYPE_NEXUS_PASSWORD }}"
closeAndReleaseRepository
- run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
Expand Down

0 comments on commit be22caa

Please sign in to comment.