Skip to content

Support to publish Spring Boot MyBatis 4.0.0-SNAPSHOT #1

Support to publish Spring Boot MyBatis 4.0.0-SNAPSHOT

Support to publish Spring Boot MyBatis 4.0.0-SNAPSHOT #1

name: Sonatype for 4.x snapshot
on:
push:
branches:
- 4.0.x.dev
permissions: read-all
jobs:
build:
if: github.repository_owner == 'mybatis' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
cache: maven
distribution: temurin
java-version: 21
- name: Deploy to Sonatype
run: ./mvnw deploy -DskipTests -B -V --no-transfer-progress --settings ./.mvn/settings.xml -Dlicense.skip=true -Denforcer.skip=true
env:
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}