diff --git a/.github/workflows/build-jlink-plugin.yml b/.github/workflows/build-runtime-plugin.yml similarity index 100% rename from .github/workflows/build-jlink-plugin.yml rename to .github/workflows/build-runtime-plugin.yml diff --git a/.github/workflows/publish-plugin.yml b/.github/workflows/publish-plugin.yml new file mode 100644 index 0000000..7e50e8d --- /dev/null +++ b/.github/workflows/publish-plugin.yml @@ -0,0 +1,22 @@ +name: Publish to the Gradle Plugin Portal + +on: [workflow_dispatch] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + - 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 }}