Commit 91331e0 1 parent d7bfe29 commit 91331e0 Copy full SHA for 91331e0
File tree 1 file changed +27
-6
lines changed
1 file changed +27
-6
lines changed Original file line number Diff line number Diff line change 1
- name : Package version bump
1
+ name : Gradle release
2
2
on :
3
3
push :
4
4
branches : [master]
5
5
workflow_dispatch : {}
6
6
7
7
jobs :
8
- build :
8
+ bump-version :
9
9
runs-on : ubuntu-latest
10
10
permissions :
11
11
contents : write
15
15
id : bump
16
16
uses : Plugily-Projects/version-bump-action@v9
17
17
with :
18
- github-token : ${{ secrets.github_token }}
18
+ github-token : ${{ secrets.GITHUB_TOKEN }}
19
19
auto-version-bump : true
20
- auto-version-bump-release : true
21
- - name : Print Version
22
- run : " echo 'New Version: ${{steps.bump.outputs.version}}'"
20
+ release :
21
+ needs : bump-version
22
+ runs-on : ubuntu-latest
23
+ permissions :
24
+ packages : write
25
+ contents : read
26
+ steps :
27
+ - uses : actions/checkout@v4
28
+ - name : Set up JDK 17
29
+ uses : actions/setup-java@v4
30
+ with :
31
+ java-version : ' 17'
32
+ distribution : ' temurin'
33
+ server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
34
+ settings-path : ${{ github.workspace }} # location for the settings.xml file
35
+ - name : Setup Gradle
36
+ uses : gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
37
+ - name : Build with Gradle
38
+ run : ./gradlew build
39
+ - name : Publish to GitHub Packages
40
+ run : ./gradlew publish
41
+ env :
42
+ USERNAME : ${{ github.actor }}
43
+ TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments