Skip to content

Commit

Permalink
Create release-plugin.yml
Browse files Browse the repository at this point in the history
add git action to automatically release the plugin to gradle plugin portal.
  • Loading branch information
Robothy authored Feb 5, 2021
1 parent 1ab02f2 commit 172f357
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 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Release plugin to gradle portal

on:
release:
branches: [ master ]

jobs:
relase:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: test
run: ./gradlew test
- name: set API keys
run: |
mkdir -p ~/.gradle
echo "gradle.publish.key=${{secrets.GRADLE_PUBLISH_KEY}}" > ~/.gradle/gradle.properties
echo "gradle.publish.secret=${{secrets.GRADLE_PUBLISH_SECRET}}" > ~/.gradle/gradle.properties
- name: publish plugins
run: ./gradlew publishPlugins

0 comments on commit 172f357

Please sign in to comment.