File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments