File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2+ # For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
3+
4+ name : Maven Package
5+
6+ on :
7+ push :
8+ workflow_dispatch :
9+ pull_request :
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : read
16+ packages : write
17+
18+ services :
19+ mongo :
20+ image : mongo:4.4
21+ ports :
22+ - 27017:27017
23+
24+ steps :
25+ - uses : actions/checkout@v2
26+ - name : Set up JDK 19
27+ uses : actions/setup-java@v2
28+ with :
29+ java-version : " 19"
30+ distribution : " adopt"
31+ server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
32+ settings-path : ${{ github.workspace }} # location for the settings.xml file
33+
34+ - name : Build with Maven
35+ run : mvn -B package --file pom.xml
You can’t perform that action at this time.
0 commit comments