Skip to content

Commit

Permalink
Execute publish and close in the same step
Browse files Browse the repository at this point in the history
  • Loading branch information
thsaravana committed Aug 30, 2021
1 parent 52e8ee1 commit 7681459
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,12 @@ jobs:
- name: Build
run: ./gradlew build --stacktrace

- name: Publish to Staging
run: ./gradlew plot:publishReleasePublicationToSonatypeRepositor --stacktrace
- name: Publish Artifact
run: ./gradlew plot:publishReleasePublicationToSonatypeRepositor --max-workers=1 closeAndReleaseSonatypeStagingRepository --stacktrace
env:
OSS_USERNAME: ${{ secrets.OSS_USERNAME }}
OSS_PASSWORD: ${{ secrets.OSS_PASSWORD }}
OSS_STAGING_PROFILE_ID: ${{ secrets.OSS_STAGING_PROFILE_ID }}
OSS_SIGNING_KEY_ID: ${{ secrets.OSS_SIGNING_KEY_ID }}
OSS_SIGNING_PASSWORD: ${{ secrets.OSS_SIGNING_PASSWORD }}
OSS_SIGNING_KEY: ${{ secrets.OSS_SIGNING_KEY }}

- name: Release to Production
run: ./gradlew closeAndReleaseSonatypeStagingRepository --stacktrace

0 comments on commit 7681459

Please sign in to comment.