From 7681459c7bb7e2d98f42ef002c71c6c1b8016893 Mon Sep 17 00:00:00 2001 From: thsaravana Date: Mon, 30 Aug 2021 20:14:53 +0530 Subject: [PATCH] Execute publish and close in the same step --- .github/workflows/publish.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5c95e7a..399f2b0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,8 +25,8 @@ 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 }} @@ -34,6 +34,3 @@ jobs: 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