File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed
Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build Mod .jar
2+
3+ on :
4+ push :
5+
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v4
11+ - name : Set up JDK
12+ uses : actions/setup-java@v4
13+ with :
14+ java-version : " 21"
15+ distribution : " temurin"
16+
17+ - name : ' Setup Gradle'
18+ uses : gradle/actions/setup-gradle@v4
19+ with :
20+ build-scan-publish : ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
21+ build-scan-terms-of-use-agree : ${{ github.ref_type == 'branch' && github.ref_name == 'main' && 'yes' || '' }}
22+ build-scan-terms-of-use-url : ${{ github.ref_type == 'branch' && github.ref_name == 'main' && 'https://gradle.com/terms-of-service' || '' }}
23+
24+ - name : ' Build with Gradle Wrapper'
25+ run : |-
26+ ./gradlew build --scan
27+ ls -la build/libs/
28+
29+ - name : ' Save Artifact'
30+ uses : actions/upload-artifact@v4
31+ with :
32+ name : ' WebSocket Console'
33+ path : ${{ github.workspace }}/build/libs
34+
35+ dependency-submission :
36+ if : ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
37+ runs-on : ubuntu-latest
38+ steps :
39+ - name : Checkout sources
40+ uses : actions/checkout@v4
41+ - name : Setup Java
42+ uses : actions/setup-java@v4
43+ with :
44+ distribution : " temurin"
45+ java-version : 21
46+
47+ - name : Generate and submit dependency graph
48+ uses : gradle/actions/dependency-submission@v4
49+ with :
50+ build-scan-publish : true
51+ build-scan-terms-of-use-agree : " yes"
52+ build-scan-terms-of-use-url : " https://gradle.com/terms-of-service"
You can’t perform that action at this time.
0 commit comments