This is an automated email from the ASF dual-hosted git repository.

tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-answer-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 043aa2e  ci: enable sitebuild (#96)
043aa2e is described below

commit 043aa2e0bd9d85693f0b2349d37cfe45e063fb10
Author: tison <[email protected]>
AuthorDate: Thu Oct 19 17:49:24 2023 +0800

    ci: enable sitebuild (#96)
    
    Signed-off-by: tison <[email protected]>
---
 .github/workflows/deploy.yml | 10 ++++++----
 static/.asf.yaml             | 37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index e2f8f03..c95deff 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -4,6 +4,7 @@ on:
   push:
     branches:
       - main
+  pull_request:
 
 jobs:
   build-deploy:
@@ -44,8 +45,9 @@ jobs:
       - name: build
         run: pnpm run build
 
-      - name: Deploy 🚀
-        uses: JamesIves/[email protected]
+      - uses: peaceiris/actions-gh-pages@v3
+        if: github.event_name != 'pull_request'
         with:
-          branch: dist-pages
-          folder: build
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          publish_dir: ./build
+          publish_branch: dist-pages
diff --git a/static/.asf.yaml b/static/.asf.yaml
new file mode 100644
index 0000000..e2a6651
--- /dev/null
+++ b/static/.asf.yaml
@@ -0,0 +1,37 @@
+# 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.
+
+# NOTE: All configurations could be found here: 
https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features
+github:
+  description: "Answer official website."
+  homepage: https://answer.apache.org/
+  enabled_merge_buttons:
+    squash: true
+    merge: true
+    rebase: false
+  protected_branches:
+    main: {}
+    dist-pages: {}
+
+publish:
+  whoami: dist-pages
+
+notifications:
+  commits:      [email protected]
+  issues:       [email protected]
+  pullrequests: [email protected]
+  discussions:  [email protected]

Reply via email to