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 44dc4d6f Update hugo.yml
44dc4d6f is described below

commit 44dc4d6f537ce060bc98b86eb4c9933cb96c4e10
Author: imbajin <[email protected]>
AuthorDate: Wed Sep 14 15:47:20 2022 +0800

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

diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml
index a38abb1d..58a04708 100644
--- a/.github/workflows/hugo.yml
+++ b/.github/workflows/hugo.yml
@@ -28,7 +28,7 @@ on:
 
 # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
 permissions:
-  contents: read
+  contents: write # old: read
   pages: write
   id-token: write
 
@@ -80,7 +80,7 @@ jobs:
       - name: Deploy
         uses: peaceiris/actions-gh-pages@v3
         # when shall we deploy the website?
-        if: github.event_name == 'push' || github.ref == 'refs/heads/main'
+        if: github.event_name == 'push' || github.ref == 'refs/heads/master'
         with:
           github_token: ${{ secrets.GITHUB_TOKEN }}
           # 
https://gohugo.io/hosting-and-deployment/hosting-on-github/#github-pages-setting

Reply via email to