File tree Expand file tree Collapse file tree 2 files changed +11
-25
lines changed
Expand file tree Collapse file tree 2 files changed +11
-25
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#apache-maven-with-a-settings-path
3-
4- name : Maven Package
5-
1+ name : Publish package to GitHub Packages
62on :
73 release :
84 types : [created]
9-
105jobs :
11- build :
12-
6+ publish :
137 runs-on : ubuntu-latest
14-
158 steps :
16- - uses : actions/checkout@v2
17- - name : Set up JDK 1.8
18- uses : actions/setup-java@v1
19- with :
20- java-version : 1.8
21- server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
22- settings-path : ${{ github.workspace }} # location for the settings.xml file
23-
24- - name : Build with Maven
25- run : mvn -B package --file pom.xml
26-
27- - name : Publish to GitHub Packages Apache Maven
28- run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml
29- env :
30- GITHUB_TOKEN : ${{ secrets.TOKEN }}
9+ - uses : actions/checkout@v2
10+ - uses : actions/setup-java@v1
11+ with :
12+ java-version : 1.8
13+ - name : Publish package
14+ run : mvn --batch-mode deploy
15+ env :
16+ GITHUB_TOKEN : ${{ secrets.TOKEN }}
Original file line number Diff line number Diff line change 66 <modelVersion >4.0.0</modelVersion >
77 <groupId >info.xiaomo</groupId >
88 <artifactId >gameCore</artifactId >
9- <version >2.0.4 </version >
9+ <version >2.0.5 </version >
1010 <name >gameCore</name >
1111
1212 <properties >
You can’t perform that action at this time.
0 commit comments