Skip to content

Commit e0e9b99

Browse files
authored
Update main.yml
1 parent 548abb3 commit e0e9b99

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,34 @@
1-
name: build kotlin
1+
name: Kotlin Gradle Build
2+
23
on:
34
push:
45
branches:
5-
- master
66
- main
7-
workflow_dispatch:
7+
pull_request:
8+
branches:
9+
- main
10+
811
jobs:
9-
deploy:
12+
build:
13+
1014
runs-on: ubuntu-latest
15+
1116
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
1422
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
1932
with:
20-
arguments: build
33+
name: build-artifacts
34+
path: build/libs/*.jar

0 commit comments

Comments
 (0)