File tree Expand file tree Collapse file tree 1 file changed +25
-11
lines changed Expand file tree Collapse file tree 1 file changed +25
-11
lines changed Original file line number Diff line number Diff line change 1
- name : build kotlin
1
+ name : Kotlin Gradle Build
2
+
2
3
on :
3
4
push :
4
5
branches :
5
- - master
6
6
- main
7
- workflow_dispatch :
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
8
11
jobs :
9
- deploy :
12
+ build :
13
+
10
14
runs-on : ubuntu-latest
15
+
11
16
steps :
12
- - uses : actions/checkout@v4
13
- - uses : actions/setup-java@v3
17
+ - name : Checkout Repository
18
+ uses : actions/checkout@v2
19
+
20
+ - name : Set up JDK
21
+ uses : actions/setup-java@v2
14
22
with :
15
- java-version : ' 17'
16
- distribution : ' temurin'
17
- - name : Run the Gradle package task
18
- uses : gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
23
+ distribution : ' adopt'
24
+ java-version : ' 11'
25
+
26
+ - name : Build with Gradle
27
+ run : |
28
+ ./gradlew shadowJar
29
+
30
+ - name : Upload Artifacts
31
+ uses : actions/upload-artifact@v2
19
32
with :
20
- arguments : build
33
+ name : build-artifacts
34
+ path : build/libs/*.jar
You can’t perform that action at this time.
0 commit comments