[maven-release-plugin] prepare release 1.5.3 #154
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| release: | |
| types: [ published ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: 11 | |
| - name: Cache Maven packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - uses: s4u/maven-settings-action@v2.2.0 | |
| with: | |
| servers: | | |
| [{ | |
| "id": "github-packages", | |
| "username": "${{ github.actor }}", | |
| "password": "${{ secrets.GITHUB_TOKEN }}" | |
| }] | |
| properties: | | |
| [ | |
| { "maven.wagon.http.ssl.insecure": "true" }, | |
| { "maven.wagon.http.ssl.allowall": "true" }, | |
| { "maven.wagon.http.ssl.ignore.validity.dates": "true"} | |
| ] | |
| githubServer: false | |
| - name: Build with Maven | |
| run: mvn -P github-packages --batch-mode install | |
| - name: Publish package | |
| run: mvn -P github-packages -DskipTests -Dfindbugs.skip=true -Dpmd.skip=true -Dcpd.skip=true -B deploy | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| if: github.event_name == 'release' && github.event.action == 'published' |