File tree Expand file tree Collapse file tree 1 file changed +11
-45
lines changed
Expand file tree Collapse file tree 1 file changed +11
-45
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 : [push]
3+ on : [push]
94
105jobs :
116 build :
127 runs-on : ubuntu-latest
13- permissions :
14- contents : read
15- packages : write
16- steps :
17- - uses : actions/checkout@v2
18- - name : Set up JDK 8.0.312
19- uses : actions/setup-java@v2
20- with :
21- java-version : ' 8.0.312+7'
22- distribution : ' adopt'
23- server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
24- settings-path : ${{ github.workspace }} # location for the settings.xml file
25-
26- - name : Build with Maven
27- run : mvn -B package --file pom.xml
288
29- - name : Publish to GitHub Packages Apache Maven
30- run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml
31- env :
32- GITHUB_TOKEN : ${{ github.token }}
33-
34-
35- # name: Java CI
36- #
37- # on: [push]
38- #
39- # jobs:
40- # build:
41- # runs-on: ubuntu-latest
42- #
43- # steps:
44- # - uses: actions/checkout@v2
45- # - name: Set up JDK 8.0.312
46- # uses: actions/setup-java@v2
47- # with:
48- # java-version: '8.0.312+7'
49- # distribution: 'adopt'
50- # - name: NBM
51- # run: mvn clean install
9+ steps :
10+ - uses : actions/checkout@v2
11+ - name : Set up JDK 8.0.312
12+ uses : actions/setup-java@v2
13+ with :
14+ java-version : ' 8.0.312+7'
15+ distribution : ' adopt'
16+ - name : NBM
17+ run : mvn clean install
You can’t perform that action at this time.
0 commit comments