Skip to content

Merge pull request #1307 from mybatis/renovate/org.mybatis-mybatis-pa… #15

Merge pull request #1307 from mybatis/renovate/org.mybatis-mybatis-pa…

Merge pull request #1307 from mybatis/renovate/org.mybatis-mybatis-pa… #15

Workflow file for this run

name: Site
defaults:
run:
working-directory: core/mybatis-generator-core
on:
push:
branches:
- site
permissions:
contents: write
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: Build site
run: ../mvnw install site site:stage -DskipTests -Dlicense.skip=true -B -V --no-transfer-progress --settings ../.mvn/settings.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
- name: Deploy Site to gh-pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: core/mybatis-generator-core/target/generator.git