File tree 6 files changed +271
-264
lines changed
6 files changed +271
-264
lines changed Original file line number Diff line number Diff line change 1
1
name : Java CI
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ push :
5
+ pull_request :
6
+ release :
7
+ types :
8
+ - created
9
+
10
+ permissions :
11
+ contents : write
4
12
5
13
jobs :
6
14
buildJar :
15
+ name : Build and Publish Jar
7
16
runs-on : ubuntu-latest
8
17
steps :
9
- - uses : actions/checkout@v3
18
+ - uses : actions/checkout@v4
10
19
- name : Set up JDK 17
11
- uses : actions/setup-java@v3
20
+ uses : actions/setup-java@v4
12
21
with :
13
22
java-version : 17
14
23
distribution : temurin
24
+ - name : Setup Gradle
25
+ uses : gradle/actions/setup-gradle@v4
15
26
- name : Build mod artifact
16
27
run : |
17
28
chmod +x gradlew
18
29
./gradlew clean dex
19
- - name : Upload built mod artifact
20
- uses : actions/upload-artifact@v3
30
+ - name : Upload built mod artifact as a GitHub Action artifact
31
+ uses : actions/upload-artifact@v4
32
+ if : github.event_name == 'push' || github.event_name == 'pull_request'
33
+ with :
34
+ name : Confictura (zipped)
35
+ path : build/libs/ModTemplate.jar
36
+ if-no-files-found : error
37
+ compression-level : 0
38
+ - name : Upload built mod artifact into release
39
+ uses : softprops/action-gh-release@v2
40
+ if : github.event_name == 'release' && github.event.action == 'created'
21
41
with :
22
- name : MeepscCont (zipped)
23
- path : build/libs/MeepscCont.jar
42
+ files : build/libs/ModTemplate.jar
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments