From 4577e3bed86358508b19e41c64e10981d9180c83 Mon Sep 17 00:00:00 2001 From: Ryan Dens Date: Fri, 29 Dec 2023 14:10:41 -0500 Subject: [PATCH] :construction_worker: add release workflow --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..438d0d2 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: "Publish release" + +on: + push: + tags: + - '[0-9].[0-9]+.[0-9]+' + +jobs: + release-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.1.1 + - uses: actions/setup-java@v4.0.0 + with: + distribution: temurin + java-version: 17 + - name: Set up Gradle + uses: gradle/gradle-build-action@v2.11.0 + with: + cache-read-only: false + + - name: Execute Gradle build + run: ./gradlew build + + - name: Publish release to Gradle Plugin Portal + run: "./gradlew publishPlugins --no-configuration-cache" + env: + GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }} + GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}