Merge pull request #16 from WMS-DEV/timetable-fix #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |