Skip to content

Commit a79f31f

Browse files
committed
Update build.yml
1 parent 56d31ba commit a79f31f

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
1-
name: Build
1+
name: Java CI with Maven
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [ "main" ]
66
pull_request:
7-
branches: [main]
7+
branches: [ "main" ]
88

99
jobs:
1010
build:
11+
1112
runs-on: ubuntu-latest
1213

1314
steps:
1415
- uses: actions/checkout@v4
1516
- name: Set up JDK 17
16-
uses: actions/setup-java@v3
17+
uses: actions/setup-java@v4
1718
with:
18-
java-version: 17
19+
java-version: '17'
20+
distribution: 'temurin'
21+
cache: maven
1922
- name: Build with Maven
20-
run: mvn -B package --file pom.xml
21-
- name: Upload artifact
22-
uses: actions/upload-artifact@v3
23-
with:
24-
name: CommandFramework
25-
path: target/**
26-
if: "!contains(github.event.head_commit.message, 'README')"
23+
run: mvn -B package --file pom.xml

0 commit comments

Comments
 (0)