mirror of
https://github.com/actions/setup-java.git
synced 2024-11-27 03:59:02 +00:00
Add publish to Maven Central example to README
This commit is contained in:
parent
210fba7587
commit
d5150a6a67
@ -76,6 +76,15 @@ jobs:
|
|||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
- name: Publish to GitHub Packages Apache Maven
|
- name: Publish to GitHub Packages Apache Maven
|
||||||
run: mvn deploy
|
run: mvn deploy
|
||||||
|
- name: Set up Apache Maven Central
|
||||||
|
uses: actions/setup-java@master
|
||||||
|
with: # running setup-java again overwrites the settings.xml
|
||||||
|
java-version: 1.8
|
||||||
|
server-id: maven
|
||||||
|
username: maven_username
|
||||||
|
password: ${{ secrets.MAVEN_CENTRAL_TOKEN }} # password from secrets store
|
||||||
|
- name: Publish to Apache Maven Central
|
||||||
|
run: mvn deploy
|
||||||
```
|
```
|
||||||
See the help docs on [Publishing a Package](https://help.github.com/en/github/managing-packages-with-github-packages/configuring-apache-maven-for-use-with-github-packages#publishing-a-package) for more information on the `pom.xml` file.
|
See the help docs on [Publishing a Package](https://help.github.com/en/github/managing-packages-with-github-packages/configuring-apache-maven-for-use-with-github-packages#publishing-a-package) for more information on the `pom.xml` file.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user