chore(release): prepare 1.8.9 release #273
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: Build with JDK 17 on Ubuntu | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Build with Maven/JDK 17 on Ubuntu | |
| run: mvn --batch-mode --file pom.xml clean package | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Java for deployment to Sonatype snapshot repo | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: maven | |
| # Sonatype Central Snapshots | |
| # must match distributionManagement/snapshotRepository/id in pom: | |
| server-id: central | |
| server-username: SONATYPE_CENTRAL_USERNAME | |
| server-password: SONATYPE_CENTRAL_PASSWORD | |
| - name: Deploy to Sonatype Central snapshot repo | |
| run: mvn --batch-mode --file pom.xml --activate-profiles fast deploy | |
| env: | |
| SONATYPE_CENTRAL_USERNAME: ${{ secrets.SONATYPE_CENTRAL_USERNAME }} | |
| SONATYPE_CENTRAL_PASSWORD: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }} | |