Maven Central Repo Deployment #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Maven Central Repo Deployment | |
on: | |
release: | |
types: [released, prereleased] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Git Repo | |
uses: actions/checkout@v2 | |
- name: Set up Maven Central Repo | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 8 | |
server-id: ossrh | |
server-username: ${{ secrets.OSSRH_USER }} | |
server-password: ${{ secrets.OSSRH_PASSWORD }} | |
- name: Import GPG key | |
uses: crazy-max/ghaction-import-gpg@v6 | |
with: | |
gpg_private_key: ${{ secrets.GPG_SECRET }} | |
passphrase: ${{ secrets.GPG_PASSWORD }} | |
- name: Publish to Maven Central Repo | |
run: mvn clean deploy --batch-mode | |
env: | |
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }} | |
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }} |