File tree 1 file changed +16
-4
lines changed
1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -6,25 +6,37 @@ name: Nightly NBM Deployment
6
6
on :
7
7
push :
8
8
branches : [ master ]
9
+ pull_request :
10
+
9
11
jobs :
10
- build :
12
+ BuildSDK :
11
13
runs-on : ubuntu-latest
12
14
13
15
steps :
14
- - uses : actions/checkout@v2
16
+ - uses : actions/checkout@v3
15
17
- name : Set up JDK 21
16
- uses : actions/setup-java@v1
18
+ uses : actions/setup-java@v3
17
19
with :
18
20
java-version : 21
21
+ distribution : ' temurin'
22
+
23
+ - name : Validate the Gradle wrapper
24
+ uses : gradle/wrapper-validation-action@v2
19
25
20
26
- name : Grant execute permission for gradle
21
27
run : chmod +x gradlew
22
28
23
29
- name : Build the SDK
24
30
run : ./gradlew buildSdk
31
+
32
+ NBMDeployment :
33
+ needs : [BuildSDK]
34
+ runs-on : ubuntu-latest
35
+ if : github.event_name == 'push'
25
36
37
+ steps :
26
38
- name : Checkout the nightly-trigger repository
27
- uses : actions/checkout@v2
39
+ uses : actions/checkout@v3
28
40
with :
29
41
repository : ' jMonkeyEngine/sdk-update-center'
30
42
ref : nightly
You can’t perform that action at this time.
0 commit comments