Skip to content

Commit 1c5bf71

Browse files
authored
Create main.yml
1 parent c2cf349 commit 1c5bf71

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Maven Package
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Set up JDK 21
13+
uses: actions/setup-java@v1
14+
with:
15+
java-version: 21
16+
17+
- name: Build with Maven
18+
run: mvn clean package
19+
20+
- name: Upload artifact
21+
uses: actions/upload-artifact@v2
22+
with:
23+
name: AutoCommand
24+
path: target/*.jar

0 commit comments

Comments
 (0)