Skip to content

Bump jackson.version from 2.17.1 to 2.17.2 (#105) #63

Bump jackson.version from 2.17.1 to 2.17.2 (#105)

Bump jackson.version from 2.17.1 to 2.17.2 (#105) #63

name: Deploy snapshots
# see https://docs.github.com/en/actions/guides/publishing-java-packages-with-maven
on:
push:
branches:
- master
jobs:
release:
name: Release on Sonatype OSS
runs-on: ubuntu-latest
if: github.repository_owner == 'hazelcast'
steps:
- uses: actions/checkout@v4
- name: Read Java Config
run: cat ${{ github.workspace }}/.github/java-config.env >> $GITHUB_ENV
- name: Set up Apache Maven Central
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
cache: 'maven'
- name: Publish to Apache Maven Central
run: |
PROJECT_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
if [[ "$PROJECT_VERSION" == *-SNAPSHOT ]]; then
mvn --batch-mode -Prelease deploy
fi
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_OSS_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_OSS_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}