diff --git a/.github/workflows/site.yaml b/.github/workflows/site.yaml
index 5c0792a5..d0c67a28 100644
--- a/.github/workflows/site.yaml
+++ b/.github/workflows/site.yaml
@@ -20,7 +20,7 @@ jobs:
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
- name: Build site
- run: ./mvnw site -DskipTests -B -V --no-transfer-progress -Dlicense.skip=true
+ 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 }}
@@ -29,6 +29,6 @@ jobs:
with:
ssh-key: true
branch: gh-pages
- folder: target/site
+ folder: target/staging
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/pom.xml b/pom.xml
index a9a54b6f..37a7fb9b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -232,6 +232,7 @@
maven-site-plugin
default,zh_CN
+ ${project.distributionManagement.site.url}