Skip to content

Merge pull request #16 from WMS-DEV/timetable-fix #18

Merge pull request #16 from WMS-DEV/timetable-fix

Merge pull request #16 from WMS-DEV/timetable-fix #18

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 }}