From 762292db7eb83663330d85ebb312a8dddeb548ee Mon Sep 17 00:00:00 2001 From: Pauline Date: Tue, 3 Dec 2024 11:14:25 +0000 Subject: [PATCH] Update GA release workflow --- .github/workflows/release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b66d4cc..dc9769fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,7 @@ name: Release on: + workflow_dispatch: release: types: [published] @@ -39,7 +40,7 @@ jobs: - name: Upload to GitHub uses: AButler/upload-release-assets@v2.0.2 with: - files: 'radar-commons*/build/libs/*;radar-commons*/build/reports/*.tar.gz' + files: "radar-commons*/build/libs/*;radar-commons*/build/reports/*.tar.gz" repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Install gpg secret key @@ -51,10 +52,10 @@ jobs: env: OSSRH_USER: ${{ secrets.OSSRH_USER }} OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - run: ./gradlew -Psigning.gnupg.keyName=CBEF2CF0 -Psigning.gnupg.executable=gpg -Psigning.gnupg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} publish closeAndReleaseSonatypeStagingRepository + run: ./gradlew -Psigning.gnupg.keyName=${{ secrets.OSSRH_GPG_SECRET_KEY_NAME }} -Psigning.gnupg.executable=gpg -Psigning.gnupg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} publish closeAndReleaseSonatypeStagingRepository - name: Publish gradle plugin env: OSSRH_USER: ${{ secrets.OSSRH_USER }} OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - run: ./gradlew -Psigning.gnupg.keyName=CBEF2CF0 -Psigning.gnupg.executable=gpg -Psigning.gnupg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} :radar-commons-gradle:publish :radar-commons-gradle:closeAndReleaseSonatypeStagingRepository + run: ./gradlew -Psigning.gnupg.keyName=${{ secrets.OSSRH_GPG_SECRET_KEY_NAME }} -Psigning.gnupg.executable=gpg -Psigning.gnupg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} :radar-commons-gradle:publish :radar-commons-gradle:closeAndReleaseSonatypeStagingRepository