Skip to content

Merge pull request #259 from jmock-developers/dependabot/maven/org.co… #22

Merge pull request #259 from jmock-developers/dependabot/maven/org.co…

Merge pull request #259 from jmock-developers/dependabot/maven/org.co… #22

Workflow file for this run

name: Maven deploy snapshot
on:
push:
branches: [ master ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: maven
server-id: ossrh
# used for signing the testjar
gpg-passphrase: secret
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
run: mvn --no-transfer-progress --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}