Repository navigation
build(deps): bump com.fasterxml.jackson.core:jackson-core from 2.18.2… #1
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: Publish to GitHub Packages | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: read | |
| packages: write | |
| id-token: write # Required for generating build provenance and cryptographic attestation | |
| attestations: write | |
| jobs: | |
| publish: | |
| name: Build, Attest & Publish | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| - name: Set up Amazon Corretto 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'corretto' | |
| java-version: '25' | |
| cache: 'maven' | |
| - name: Build & Publish to GitHub Packages | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| RELEASE_VERSION="${GITHUB_REF_NAME#v}" | |
| echo "Publishing release version ${RELEASE_VERSION}" | |
| mvn --batch-mode clean deploy \ | |
| -Prelease \ | |
| -Drevision="${RELEASE_VERSION}" \ | |
| -DskipTests \ | |
| -DaltDeploymentRepository=github::https://maven.pkg.github.com/${{ github.repository }} | |
| - name: Generate Artifact Attestation (Provenance) | |
| uses: actions/attest-build-provenance@v4 | |
| with: | |
| subject-path: '**/target/*.jar' |