-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (39 loc) · 1.17 KB
/
publish.yml
File metadata and controls
48 lines (39 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Publish Plugin
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Setup JDK
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'temurin'
- name: Elevate wrapper permissions
run: chmod +x ./gradlew
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
with:
dependency-graph: generate-and-submit
- name: Build Plugin
run: ./gradlew build
- name: Upload Plugin Artifact
uses: actions/upload-artifact@v7
with:
name: plugin
path: build/libs/*.jar
archive: false
if-no-files-found: error
- name: Get Plugin Version
run: echo "PLUGIN_VERSION=$(grep '^plugin_version=' gradle.properties | cut -d'=' -f2)" >> $GITHUB_ENV
- name: Publish Plugin Github Release
uses: ncipollo/release-action@v1
with:
tag: ${{ env.PLUGIN_VERSION }}
artifacts: build/libs/*.jar
generateReleaseNotes: true