Skip to content

Commit 6210df3

Browse files
author
Gyeongil Goo
authored
#19 Github action for gradle plugin release (#21)
1 parent 07aea7a commit 6210df3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Gradle Plugin Publish
2+
on:
3+
release:
4+
types:
5+
- published
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
name: Publish plugin to gradle plugins portal
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up JDK 12
14+
uses: actions/setup-java@v1
15+
with:
16+
java-version: 12
17+
- name: Grant execute permission for gradlew
18+
run: chmod +x gradlew
19+
- run: cat ./gradle.properties
20+
- name: Publish plugins with gradle
21+
env:
22+
GRADLE_PUBLISH_KEY: ${{ secrets.PUBLISH_KEY }}
23+
GRADLE_PUBLISH_SECRET: ${{ secrets.PUBLISH_SECRET }}
24+
run: ./gradlew publishPlugins -Pgradle.publish.key=$GRADLE_PUBLISH_KEY -Pgradle.publish.secret=$GRADLE_PUBLISH_SECRET

0 commit comments

Comments
 (0)