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"] }