File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build Plugin on Tag
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*"
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v4
15+
16+ - name : Set up JDK 17
17+ uses : actions/setup-java@v4
18+ with :
19+ distribution : " temurin"
20+ java-version : " 17"
21+
22+ - name : Cache Gradle
23+ uses : actions/cache@v4
24+ with :
25+ path : |
26+ ~/.gradle/caches
27+ ~/.gradle/wrapper
28+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
29+ restore-keys : |
30+ ${{ runner.os }}-gradle-
31+
32+ - name : Make Gradle executable
33+ run : chmod +x ./gradlew
34+
35+ - name : Build plugin
36+ run : ./gradlew buildPlugin --no-daemon --stacktrace
37+
38+ - name : Upload artifact
39+ uses : actions/upload-artifact@v4
40+ with :
41+ name : plugin-distributions-${{ github.ref_name }}
42+ path : build/distributions/*.zip
43+ if-no-files-found : error
44+
45+ - name : Create GitHub Release
46+ uses : softprops/action-gh-release@v2
47+ with :
48+ tag_name : ${{ github.ref_name }}
49+ name : ${{ github.ref_name }}
50+ draft : false
51+ prerelease : false
52+ files : |
53+ build/distributions/*.zip
54+ env :
55+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments