File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+ on :
3+ release :
4+ types : [released]
5+ jobs :
6+
7+ # Prepare and publish the GitHub releases
8+ release :
9+ name : Publish Plugin
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : write
13+ pull-requests : write
14+ steps :
15+
16+ # Free GitHub Actions Environment Disk Space
17+ - name : Maximize Build Space
18+ uses : jlumbroso/free-disk-space@v1.3.1
19+ with :
20+ tool-cache : false
21+ large-packages : false
22+
23+ # Check out the current repository
24+ - name : Fetch Sources
25+ uses : actions/checkout@v4
26+ with :
27+ ref : ${{ github.event.release.tag_name }}
28+
29+ # Set up the Java environment for the next steps
30+ - name : Setup Java
31+ uses : actions/setup-java@v4
32+ with :
33+ distribution : zulu
34+ java-version : 21
35+
36+ # Setup Gradle
37+ - name : Setup Gradle
38+ uses : gradle/actions/setup-gradle@v4
39+ with :
40+ cache-read-only : true
41+
42+ # Build the plugin artifact
43+ - name : Build the Plugin
44+ run : |
45+ ./gradlew buildPlugin
46+
47+ # Upload an artifact as a release asset
48+ - name : Upload Release Asset
49+ env :
50+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51+ run : gh release upload ${{ github.event.release.tag_name }} ./build/distributions/*
You can’t perform that action at this time.
0 commit comments