change maven badge api #168
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: Build | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- uses: gradle/[email protected] | |
with: | |
gradle-home-cache-cleanup: true | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Assemble | |
run: ./gradlew assemble --stacktrace | |
- name: Publish | |
if: startsWith(github.ref, 'refs/tags/') | |
run: ./gradlew publish | |
env: | |
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
GPG_KEY: ${{ secrets.GPG_KEY }} | |
GPG_KEY_PWD: ${{ secrets.GPG_KEY_PWD }} | |