Skip to content

Merge pull request #8 from WMS-DEV/mdybek/dpendencies-update #25

Merge pull request #8 from WMS-DEV/mdybek/dpendencies-update

Merge pull request #8 from WMS-DEV/mdybek/dpendencies-update #25

Workflow file for this run

name: Deploy to Sonatype Central
on:
push:
branches: [ main ]
paths:
- core/src/main/java/**
- core/pom.xml
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Maven Central Repository
uses: actions/setup-java@v1
with:
java-version: 17
server-id: central
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: cd core && mvn -B clean deploy -Pci-cd
env:
MAVEN_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}