Skip to content

Commit 6043d85

Browse files
committed
add release action
Signed-off-by: jorgee <[email protected]>
1 parent 034fb3d commit 6043d85

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
push:
3+
branches: [ main ]
4+
paths: [ VERSION ]
5+
6+
jobs:
7+
release:
8+
if: "contains(github.event.head_commit.message, '[release]')"
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up JDK 17
15+
uses: actions/setup-java@v4
16+
with:
17+
java-version: '17'
18+
distribution: 'temurin'
19+
20+
- name: Publish Plugin
21+
env:
22+
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
23+
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
24+
run: ./gradlew publishPlugins --no-daemon --stacktrace

0 commit comments

Comments
 (0)