Skip to content

Commit 05043f6

Browse files
Create maven.yml (#1)
1 parent d391964 commit 05043f6

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/maven.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
3+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
4+
5+
# This workflow uses actions that are not certified by GitHub.
6+
# They are provided by a third-party and are governed by
7+
# separate terms of service, privacy policy, and support
8+
# documentation.
9+
10+
name: Java CI with Maven
11+
12+
on:
13+
push:
14+
branches: [ "*" ]
15+
pull_request:
16+
branches: [ "*" ]
17+
18+
jobs:
19+
build:
20+
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Set up JDK 21
26+
uses: actions/setup-java@v4
27+
with:
28+
java-version: '21'
29+
distribution: 'temurin'
30+
cache: maven
31+
- name: Build with Maven
32+
run: mvn -B package --file pom.xml
33+
- run: mkdir staging && cp target/*.jar staging
34+
- uses: actions/upload-artifact@v4
35+
with:
36+
name: Package
37+
path: staging

0 commit comments

Comments
 (0)