diff --git a/.github/workflows/site.yaml b/.github/workflows/site.yaml
new file mode 100644
index 00000000000..f3ca17bff70
--- /dev/null
+++ b/.github/workflows/site.yaml
@@ -0,0 +1,34 @@
+name: Site
+
+on:
+ push:
+ branches:
+ - site
+
+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@v3
+ with:
+ java-version: 21
+ distribution: zulu
+ - uses: webfactory/ssh-agent@master
+ with:
+ ssh-private-key: ${{ secrets.DEPLOY_KEY }}
+ - name: Build site
+ run: ./mvnw site site:stage -DskipTests -B -V --no-transfer-progress -Dlicense.skip=true
+ env:
+ CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ - name: Deploy Site to gh-pages
+ uses: JamesIves/github-pages-deploy-action@v4.4.3
+ with:
+ ssh-key: true
+ branch: gh-pages
+ folder: target/staging
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml
index 489fb964066..4ffcc3aa18a 100644
--- a/.github/workflows/sonar.yaml
+++ b/.github/workflows/sonar.yaml
@@ -20,7 +20,7 @@ jobs:
java-version: 21
distribution: zulu
- name: Analyze with SonarCloud
- run: ./mvnw verify jacoco:report sonar:sonar -B -Dsonar.projectKey=mybatis_mybatis-3 -Dsonar.organization=mybatis -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dlicense.skip=true --no-transfer-progress
+ run: ./mvnw verify jacoco:report sonar:sonar -B -Dsonar.projectKey=mybatis_mybatis-3 -Dsonar.organization=mybatis -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=$SONAR_TOKEN -Dlicense.skip=true --no-transfer-progress
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
diff --git a/pom.xml b/pom.xml
index 38d6548c777..be37b8d6fbe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,7 +35,7 @@
applications. MyBatis couples objects with stored procedures or SQL statements using a XML descriptor or
annotations. Simplicity is the biggest advantage of the MyBatis data mapper over object relational mapping
tools.
- https://github.com/mybatis/mybatis-3
+ https://www.mybatis.org/mybatis-3/
2009
@@ -443,7 +443,6 @@
maven-site-plugin
default,es,ja,fr,zh_CN,ko
- ${project.distributionManagement.site.url}
diff --git a/renovate.json b/renovate.json
index 39a2b6e9a55..5db72dd6a94 100644
--- a/renovate.json
+++ b/renovate.json
@@ -1,6 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
- "config:base"
+ "config:recommended"
]
}