Skip to content

Merge pull request #36 from rapid7/PD-45855 #1

Merge pull request #36 from rapid7/PD-45855

Merge pull request #36 from rapid7/PD-45855 #1

Workflow file for this run

name: Publish a snapshot to the Maven Central Repository
on:
push:
branches: [ "master" ]
jobs:
snapshot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'zulu'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-passphrase: GPG_PASSPHRASE
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
- name: Publish snapshot
run: mvn deploy -B -C -U -Dprod -Pstyle-enforcer
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}