chore: release version 0.18.0 #12
Workflow file for this run
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: Maven Deploy | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| verify: | |
| name: maven verify | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Git Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| cache: maven | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Verify with Maven | |
| run: | | |
| chmod +x ./mvnw | |
| ./mvnw -B clean verify --file pom.xml | |
| deploy: | |
| name: maven deploy | |
| needs: verify | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Git Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| cache: maven | |
| java-version: '17' | |
| distribution: 'temurin' | |
| server-id: central # <publishingServerId> in pom.xml | |
| server-username: MAVEN_USERNAME | |
| server-password: MAVEN_PASSWORD | |
| gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | |
| gpg-passphrase: GPG_PASSPHRASE | |
| - name: Deploy to Maven Central | |
| run: | | |
| chmod +x ./mvnw | |
| ./mvnw -B clean deploy --file pom.xml | |
| env: | |
| MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
| MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
| GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} |