Skip to content

Commit

Permalink
GitHub Action to publish to Maven Central (#17)
Browse files Browse the repository at this point in the history
* Create maven-publish.yml

* Update maven-publish.yml

* Update maven-publish.yml

* Update maven-publish.yml
  • Loading branch information
adrianmo committed Oct 2, 2020
1 parent 0d94c4c commit 9423f0c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish package to the Maven Central Repository
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Publish to Maven Central
uses: samuelmeuli/action-maven-publish@v1.4.0
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
nexus_username: ${{ secrets.OSSRH_USERNAME }}
nexus_password: ${{ secrets.OSSRH_TOKEN }}
server_id: ossrh

0 comments on commit 9423f0c

Please sign in to comment.