diff --git a/.github/workflows/build-jlink-plugin.yml b/.github/workflows/build-jlink-plugin.yml index 7828045f..d217abb9 100644 --- a/.github/workflows/build-jlink-plugin.yml +++ b/.github/workflows/build-jlink-plugin.yml @@ -26,3 +26,23 @@ jobs: env: # Or as an environment variable GRGIT_USER: ${{ secrets.GRGIT_USER }} run: chmod +x publish.sh && ./publish.sh + release: + name: Publish to the Gradle Plugin Portal + runs-on: ubuntu-latest + needs: build + if: "startsWith(github.event.head_commit.message, 'Release ')" + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'zulu' + - name: Publish Gradle Plugins + uses: gradle/gradle-build-action@v2 + with: + arguments: | + assemble + publishPlugins + -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} + -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }} diff --git a/.github/workflows/publish-plugin.yml b/.github/workflows/publish-plugin.yml index 01adc789..49a5b56f 100644 --- a/.github/workflows/publish-plugin.yml +++ b/.github/workflows/publish-plugin.yml @@ -16,7 +16,7 @@ jobs: uses: gradle/gradle-build-action@v2 with: arguments: | - build + assemble publishPlugins -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }} diff --git a/gradle.properties b/gradle.properties index 5c44d889..bfa7222b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ pluginVersionMajor = 3 pluginVersionMinor = 0 pluginVersionPatch = 0 -pluginVersionLabel = rc-1 +#pluginVersionLabel = rc-1 pluginReleaseBuild = true