File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5656 - run : java -cp java HelloWorldApp
5757` ` `
5858
59+ Publising to an Apache Maven Repository:
60+ ` ` ` yaml
61+ jobs :
62+ build :
63+
64+ runs-on : ubuntu-latest
65+
66+ steps :
67+ - uses : actions/checkout@v1
68+ - name : Set up JDK 1.8
69+ uses : actions/setup-java@master
70+ with :
71+ java-version : 1.8
72+ server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
73+ username : ${{ github.actor }} # username for server authentication
74+ password : ${{ github.token }} # password or token for authentication
75+ - name : Build with Maven
76+ run : mvn -B package --file pom.xml
77+ - name : Publish to GitHub Packages Apache Maven
78+ run : mvn deploy
79+ ` ` `
80+
5981# License
6082
6183The scripts and documentation in this project are released under the [MIT License](LICENSE)
You can’t perform that action at this time.
0 commit comments