Skip to content

Merge pull request #88 from smeup/feat/dependabot #2

Merge pull request #88 from smeup/feat/dependabot

Merge pull request #88 from smeup/feat/dependabot #2

name: Deploy to maven central
on:
push:
branches: [master, develop]
workflow_dispatch:
env:
JAVA_DISTRIBUTION: zulu
JAVA_VERSION: 11
jobs:
maven-deploy-maven-central:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Deploy with Maven
run: mvn -B clean pre-site deploy -DautoDropAfterRelease=true -DskipTests -Pci-cd
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}