From 04b2c79a0f779b9fa601ecf17b4b9cf8f8a32e42 Mon Sep 17 00:00:00 2001 From: Serban Iordache Date: Sun, 4 Feb 2024 12:52:41 +0100 Subject: [PATCH] add GitHub action for publishing plugin --- ...nk-plugin.yml => build-runtime-plugin.yml} | 0 .github/workflows/publish-plugin.yml | 22 +++++++++++++++++++ 2 files changed, 22 insertions(+) rename .github/workflows/{build-jlink-plugin.yml => build-runtime-plugin.yml} (100%) create mode 100644 .github/workflows/publish-plugin.yml 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 }}