From cafac8937a22038c604173aff202caae5e6ab45a Mon Sep 17 00:00:00 2001 From: Julian Blazek Date: Fri, 21 Jun 2024 16:52:51 +0200 Subject: [PATCH] Update Build Action and Injection --- .github/workflows/release.yml | 10 +++++++--- build.gradle | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9bacb77..0ab58ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,10 +32,14 @@ jobs: id: release shell: bash run: echo "preRelease=${{ github.event.release.prerelease}}" >> $GITHUB_OUTPUT - - name: Build plugin + - name: Build plugin, sign plugin and publish plugin run: ./gradlew buildPlugin signPlugin publishPlugin -PpreRelease=${{ steps.release.outputs.preRelease }} env: + PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} + - name: Sign and publish plugin + run: ./gradlew signPlugin publishPlugin -PpreRelease=${{ steps.release.outputs.preRelease }} + env: + PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }} PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} - PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }} - PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} \ No newline at end of file + PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }} \ No newline at end of file diff --git a/build.gradle b/build.gradle index 5af54f9..fa3e40e 100644 --- a/build.gradle +++ b/build.gradle @@ -46,8 +46,8 @@ signPlugin { } publishPlugin { - token = System.getenv("PUBLISH_TOKEN") - hidden = getProperty("hidden") + token = System.getenv("PUBLISH_TOKEN") + setHidden(getProperty("hidden") as Boolean) channels = getProperty("preRelease") ? ["autoconfig-beta"] : ["default", "autoconfig-beta"] }