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