Publish to Maven #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: Publish to Maven | |
on: [workflow_dispatch] | |
permissions: | |
contents: write | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: temurin | |
cache: gradle | |
- name: Validate Gradle Wrapper Integrity | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Make Gradle wrapper executable | |
run: chmod +x ./gradlew | |
- name: Publish to Maven | |
run: ./gradlew publishReleasePublicationToReleaseRepository -PreleaseUsername=${{ secrets.MAVEN_USERNAME }} -PreleasePassword=${{ secrets.MAVEN_PASSWORD }} |