File tree Expand file tree Collapse file tree 1 file changed +10
-27
lines changed
Expand file tree Collapse file tree 1 file changed +10
-27
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
1+ name : Java CI
32
4- name : Maven Package
5-
6- on :
7- release :
8- types : [created]
3+ on : [push]
94
105jobs :
116 build :
12-
137 runs-on : ubuntu-latest
14- permissions :
15- contents : read
16- packages : write
178
189 steps :
19- - uses : actions/checkout@v2
20- - name : Set up JDK 1.8
21- uses : actions/setup-java@v2
22- with :
23- java-version : ' 1.8'
24- distribution : ' adopt'
25- server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
26- settings-path : ${{ github.workspace }} # location for the settings.xml file
27-
28- - name : Build with Maven
29- run : mvn -B package --file pom.xml
30-
31- - name : Publish to GitHub Packages Apache Maven
32- run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml
33- env :
34- GITHUB_TOKEN : ${{ github.token }}
10+ - uses : actions/checkout@v2
11+ - name : Set up JDK 1.8
12+ uses : actions/setup-java@v2
13+ with :
14+ java-version : ' 1.8'
15+ distribution : ' adopt'
16+ - name : NBM
17+ run : mvn clean install
You can’t perform that action at this time.
0 commit comments