Refactor POM files to remove redundant properties and update Maven co… #1
This file contains hidden or 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 Maven Central | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
deploy: | ||
name: Deploy to Maven Central | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
server-id: ossrh | ||
server-username: OSSRH_USERNAME | ||
server-password: OSSRH_PASSWORD | ||
- name: Deploy with Maven | ||
run: | | ||
./mvnw -B clean install -DskipTests | ||
./mvnw -B clean deploy -Psonatype |