File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build source with Gradle
2+
3+ permissions :
4+ contents : read
5+
6+ on :
7+ push :
8+ branches : [ "main" ]
9+ paths : ["src/"]
10+ pull_request :
11+ branches : [ "main" ]
12+ paths : ["src/"]
13+ workflow_dispatch :
14+
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - name : Set up Temurin OpenJDK 8
21+ uses : actions/setup-java@v4
22+ with :
23+ java-version : ' 8'
24+ distribution : ' temurin'
25+
26+ - name : Set up Gradle 8.5
27+ uses : gradle/gradle-build-action@v2.11.1
28+ id : setup-gradle
29+
30+ - name : Checkout
31+ uses : actions/checkout@v4
32+
33+ - name : Build with Gradle
34+ uses : gradle/gradle-build-action@v2.11.1
35+ with :
36+ arguments : --info jar
37+
38+ - name : Upload artifact
39+ uses : actions/upload-artifact@v4.2.0
40+ with :
41+ name : Build-jar
42+ path : build/libs/TheTraveler.jar
You can’t perform that action at this time.
0 commit comments