This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/attic.git
The following commit(s) were added to refs/heads/main by this push:
new d776b75 enable GH Action site build to asf-site branch
d776b75 is described below
commit d776b7546c5bfca892df9ee35b235ca5fafad91d
Author: HervΓ© Boutemy <[email protected]>
AuthorDate: Sun Apr 13 20:10:26 2025 +0200
enable GH Action site build to asf-site branch
---
.github/workflows/build.yml | 57 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..490e773
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,57 @@
+# 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: Build site
+
+on:
+ push:
+ branches: ['main']
+ pull_request:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: π Checkout
+ uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #
v3.5.3
+ with:
+ submodules: recursive
+ lfs: true
+ fetch-depth: 1
+ - name: π Checkout gh-pages branch with minimum depth
+ uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #
3.5.3
+ if: ${{ github.event_name == 'push' }}
+ with:
+ ref: asf-site
+ fetch-depth: 1
+ path: docs
+ - name: π§ Build site
+ run: |
+ ./build.sh
+ - name: π Add commit to the asf-site
+ if: ${{ github.event_name == 'push' }}
+ working-directory: docs
+ run: |
+ echo "Running git config"
+ git config user.name "GitHub Actions"
+ git config user.email "[email protected]"
+ echo "Running git add"
+ git add .
+ echo "Running git commit"
+ git commit -m "Regenerated website based on ${GITHUB_SHA} commit"
+ git push origin asf-site