Skip to content

Commit c8f8a26

Browse files
author
Bryan Clark
committed
Add publish section to README
1 parent 1085a2b commit c8f8a26

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,28 @@ jobs:
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
6183
The scripts and documentation in this project are released under the [MIT License](LICENSE)

0 commit comments

Comments
 (0)