Skip to content

Commit e5d158e

Browse files
committed
Adding simple workflow
1 parent 3e9539b commit e5d158e

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/maven.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up JDK 1.8
20+
uses: actions/setup-java@v4
21+
with:
22+
java-version: '8'
23+
distribution: corretto
24+
25+
- name: Build with Maven
26+
run: mvn clean package
27+
28+
- name: Upload artifact [uber-jar]
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: uber-jar
32+
path: target/*-jar-with-dependencies.jar
33+
if-no-files-found: error
34+
retention-days: 7

0 commit comments

Comments
 (0)