This is an automated email from the ASF dual-hosted git repository.
jiekaichang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/mahout.git
The following commit(s) were added to refs/heads/main by this push:
new 22c753c9c feat: add website build ci to ensure website build success
on main branch (#1020)
22c753c9c is described below
commit 22c753c9c3f7c68e2ed80ffcb57231407871368b
Author: Ryan Huang <[email protected]>
AuthorDate: Sat Feb 7 00:12:28 2026 +0800
feat: add website build ci to ensure website build success on main branch
(#1020)
---
.github/workflows/website-build.yml | 47 +++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/.github/workflows/website-build.yml
b/.github/workflows/website-build.yml
new file mode 100644
index 000000000..8be05e100
--- /dev/null
+++ b/.github/workflows/website-build.yml
@@ -0,0 +1,47 @@
+#
+# 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: Website Build Check
+
+on:
+ pull_request:
+ branches: [main]
+ paths:
+ - 'website/**'
+ - 'docs/**'
+ - '.github/workflows/website-build.yml'
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v6
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+ cache: 'npm'
+ cache-dependency-path: website/package-lock.json
+
+ - name: Install dependencies
+ working-directory: website
+ run: npm ci
+
+ - name: Build website
+ working-directory: website
+ run: npm run build