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

jin pushed a commit to branch test-build
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-doc.git


The following commit(s) were added to refs/heads/test-build by this push:
     new 96679e75 Update hugo.yml
96679e75 is described below

commit 96679e7502a6094302028ef1792924b341e246e4
Author: imbajin <[email protected]>
AuthorDate: Wed Sep 14 15:24:13 2022 +0800

    Update hugo.yml
---
 .github/workflows/hugo.yml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml
index ddb1f635..a38abb1d 100644
--- a/.github/workflows/hugo.yml
+++ b/.github/workflows/hugo.yml
@@ -14,6 +14,7 @@
 # limitations under the License.
 
 # Sample workflow for building and deploying a Hugo site to GitHub Pages
+# Refer: https://github.com/marketplace/actions/github-pages-action
 name: Deploy Hugo site to Pages
 
 on:
@@ -78,10 +79,10 @@ jobs:
 
       - name: Deploy
         uses: peaceiris/actions-gh-pages@v3
-        if: github.event_name == 'push' && github.ref == 'refs/heads/main'
+        # when shall we deploy the website?
+        if: github.event_name == 'push' || github.ref == 'refs/heads/main'
         with:
           github_token: ${{ secrets.GITHUB_TOKEN }}
           # 
https://gohugo.io/hosting-and-deployment/hosting-on-github/#github-pages-setting
-          publish_branch: asf-site    # Settings > GitHub Pages set the source 
branch to this publish_branch
           publish_dir: ./public
-      # https://github.com/marketplace/actions/github-pages-action
+          publish_branch: asf-site    # Settings > GitHub Pages set the source 
branch to this publish_branch

Reply via email to