From 237cb45b93cc8d2371d992c9fa606c7e641bf06f Mon Sep 17 00:00:00 2001 From: Gregor Dschung Date: Mon, 24 Jan 2022 21:01:11 +0100 Subject: [PATCH] GitHub workflow for release --- .github/workflows/release-plugin.yml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/release-plugin.yml diff --git a/.github/workflows/release-plugin.yml b/.github/workflows/release-plugin.yml new file mode 100644 index 0000000..db2fb21 --- /dev/null +++ b/.github/workflows/release-plugin.yml @@ -0,0 +1,30 @@ +name: Release plugin + +on: + release: + types: [ created ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'temurin' + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + + - name: Build + run: ./gradlew build + + - name: Publish to plugins.gradle.org + run: | + ./gradlew -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} \ + -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }} \ + -Prelease=true \ + publishPlugins