Bump jackson version #4
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: release | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| env: | |
| RELEASE_VERSION: ${{ github.ref_name }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Cache Maven packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-maven | |
| - name: Resolve release version | |
| run: | | |
| VERSION="${RELEASE_VERSION#v}" | |
| if [ -z "$VERSION" ] || [ "$VERSION" = "$RELEASE_VERSION" ]; then | |
| echo "Tag must start with 'v', got: $RELEASE_VERSION" >&2 | |
| exit 1 | |
| fi | |
| echo "RELEASE_VERSION=$VERSION" >> "$GITHUB_ENV" | |
| - name: Build And Verify Project | |
| run: mvn -B clean verify -Drevision="${RELEASE_VERSION}" | |
| # Create a release | |
| - name: Run JReleaser | |
| run: mvn -B jreleaser:full-release -Drevision="${RELEASE_VERSION}" | |
| env: | |
| JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # Persist logs | |
| - name: JReleaser release output | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: jreleaser-release | |
| path: | | |
| out/jreleaser/trace.log | |
| out/jreleaser/output.properties |