File tree 3 files changed +48
-30
lines changed
3 files changed +48
-30
lines changed Original file line number Diff line number Diff line change
1
+ name : Gradle release
2
+ on :
3
+ pull_request :
4
+ branches :
5
+ - master
6
+ types :
7
+ - closed
8
+ workflow_dispatch : {}
9
+
10
+ concurrency :
11
+ group : ${{ github.workflow }}
12
+ cancel-in-progress : true
13
+ jobs :
14
+ release :
15
+ if : github.event.pull_request.merged == true
16
+ runs-on : ubuntu-latest
17
+ permissions :
18
+ packages : write
19
+ contents : read
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+ with :
23
+ ref : ${{ github.ref_name }}
24
+ - name : Set up JDK 17
25
+ uses : actions/setup-java@v4
26
+ with :
27
+ java-version : ' 17'
28
+ distribution : ' temurin'
29
+ server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
30
+ settings-path : ${{ github.workspace }} # location for the settings.xml file
31
+ - name : Setup Gradle
32
+ uses : gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
33
+ - name : Build with Gradle
34
+ run : ./gradlew build
35
+ - name : Publish to GitHub Packages
36
+ run : ./gradlew publish
37
+ env :
38
+ USERNAME : ${{ github.actor }}
39
+ TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
- name : Gradle release
1
+ name : Bump version
2
2
on :
3
- push :
4
- branches : [master]
3
+ pull_request :
4
+ types : [opened]
5
+ branches :
6
+ - ' master'
5
7
workflow_dispatch : {}
6
8
7
9
concurrency :
@@ -14,35 +16,12 @@ jobs:
14
16
contents : write
15
17
steps :
16
18
- uses : actions/checkout@v4
19
+ with :
20
+ fetch-depth : 0
21
+ ref : ${{ github.event.pull_request.head.ref }}
17
22
- name : Bump Version
18
23
id : bump
19
24
uses : Plugily-Projects/version-bump-action@v9
20
25
with :
21
26
github-token : ${{ secrets.GITHUB_TOKEN }}
22
27
auto-version-bump : true
23
- release :
24
- needs : bump-version
25
- runs-on : ubuntu-latest
26
- permissions :
27
- packages : write
28
- contents : read
29
- steps :
30
- - uses : actions/checkout@v4
31
- with :
32
- ref : ${{ github.ref_name }}
33
- - name : Set up JDK 17
34
- uses : actions/setup-java@v4
35
- with :
36
- java-version : ' 17'
37
- distribution : ' temurin'
38
- server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
39
- settings-path : ${{ github.workspace }} # location for the settings.xml file
40
- - name : Setup Gradle
41
- uses : gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
42
- - name : Build with Gradle
43
- run : ./gradlew build
44
- - name : Publish to GitHub Packages
45
- run : ./gradlew publish
46
- env :
47
- USERNAME : ${{ github.actor }}
48
- TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ plugins {
5
5
}
6
6
7
7
group = ' com.anduril'
8
- version = ' 1.0.0-SNAPSHOT24 '
8
+ version = ' 1.0.0-SNAPSHOT25 '
9
9
10
10
compileJava {
11
11
sourceCompatibility = ' 1.8'
You can’t perform that action at this time.
0 commit comments