This is an automated email from the ASF dual-hosted git repository.
gongchao pushed a commit to branch fix-doc-sidelbar
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
The following commit(s) were added to refs/heads/fix-doc-sidelbar by this push:
new 960e294270 chore: update doc
960e294270 is described below
commit 960e2942709040604b81906de05311f18e6d1c7a
Author: tomsun28 <[email protected]>
AuthorDate: Sat Feb 7 11:14:56 2026 +0800
chore: update doc
Signed-off-by: tomsun28 <[email protected]>
---
.github/workflows/doc-deploy.yml | 82 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 82 insertions(+)
diff --git a/.github/workflows/doc-deploy.yml b/.github/workflows/doc-deploy.yml
new file mode 100644
index 0000000000..bb66c8f861
--- /dev/null
+++ b/.github/workflows/doc-deploy.yml
@@ -0,0 +1,82 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+name: DOC Deploy
+
+on:
+ # Trigger on push to master branch when home directory files are changed
+ push:
+ branches: [ master ]
+ paths:
+ - 'home/**'
+
+ # Allow manual workflow trigger
+ workflow_dispatch:
+
+# Set permissions for deployment
+permissions:
+ contents: write
+
+jobs:
+ deploy:
+ name: Deploy Documentation to asf-site Branch
+ runs-on: ubuntu-latest
+
+ steps:
+ # Checkout the repository code
+ - name: Checkout Repository
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ # Setup Node.js environment
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+
+ # Install dependencies in home directory
+ - name: Install Dependencies
+ working-directory: home
+ run: npm ci
+
+ # Build the documentation site
+ - name: Build Documentation
+ working-directory: home
+ run: npm run build
+ env:
+ NODE_OPTIONS: --max-old-space-size=4096
+
+ # Deploy to asf-site branch using peaceiris/actions-gh-pages
+ - name: Deploy to asf-site Branch
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./home/build
+ publish_branch: asf-site
+ force_orphan: true
+ user_name: 'github-actions[bot]'
+ user_email: 'github-actions[bot]@users.noreply.github.com'
+ commit_message: 'Deploy documentation to asf-site branch'
+
+ # Output deployment status
+ - name: Deployment Summary
+ run: |
+ echo "Documentation deployed successfully!"
+ echo "Deployment branch: asf-site"
+ echo "Source branch: ${{ github.ref_name }}"
+ echo "Commit SHA: ${{ github.sha }}"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]