Skip to content

Commit

Permalink
GitHub workflow for release
Browse files Browse the repository at this point in the history
  • Loading branch information
chkpnt committed Jan 24, 2022
1 parent 407394b commit 237cb45
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release-plugin.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 237cb45

Please sign in to comment.