diff --git a/.github/workflows/site.yaml b/.github/workflows/site.yaml
new file mode 100644
index 000000000..299c414a7
--- /dev/null
+++ b/.github/workflows/site.yaml
@@ -0,0 +1,35 @@
+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/pom.xml b/pom.xml
index 533ee5f59..e281cbcc9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -212,7 +212,7 @@
org.apache.maven.plugins
maven-site-plugin
- en,es,ja,ko
+ default,es,ja,ko
diff --git a/src/site/site.xml b/src/site/site.xml
index 48ff6aeb2..6ffda05b6 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -1,7 +1,7 @@
-
+
+
+
diff --git a/src/site/site_es.xml b/src/site/site_es.xml
index 7cb888415..3de2eb1ce 100644
--- a/src/site/site_es.xml
+++ b/src/site/site_es.xml
@@ -17,8 +17,8 @@
-->
-
+
@@ -27,4 +27,5 @@
-
+
+
diff --git a/src/site/site_ja.xml b/src/site/site_ja.xml
index a77588f4b..a879f6632 100644
--- a/src/site/site_ja.xml
+++ b/src/site/site_ja.xml
@@ -17,8 +17,8 @@
-->
-
+
@@ -27,4 +27,5 @@
-
+
+
diff --git a/src/site/site_ko.xml b/src/site/site_ko.xml
index 4114df9e8..24f9c0e32 100644
--- a/src/site/site_ko.xml
+++ b/src/site/site_ko.xml
@@ -17,8 +17,8 @@
-->
-
+
@@ -27,4 +27,5 @@
-
+
+