This is an automated email from the ASF dual-hosted git repository. jin pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-doc.git
commit b63473e004d78ec09c4c9224cf6cbab7cc51989f Author: imbajin <[email protected]> AuthorDate: Wed Sep 14 20:14:11 2022 +0800 keep .asf.yaml & commit message --- .github/workflows/hugo.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 0514b61b..a7892eef 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -14,8 +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 Site (hugo) +name: Deploy site to pages (hugo) on: pull_request: @@ -42,13 +41,13 @@ jobs: uses: actions/[email protected] with: node-version: "16" - + - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: hugo-version: '0.102.3' extended: true - + - uses: actions/cache@v2 with: path: /tmp/hugo_cache @@ -64,6 +63,8 @@ jobs: if: ${{ github.ref == 'refs/heads/master' }} with: github_token: ${{ secrets.GITHUB_TOKEN }} - # https://gohugo.io/hosting-and-deployment/hosting-on-github/#github-pages-setting + # Refer: https://github.com/marketplace/actions/github-pages-action publish_dir: ./public - publish_branch: asf-site # Settings > GitHub Pages set the source branch to this publish_branch + publish_branch: asf-site + keep_files: true # A simple way to keep ".asf.yaml" file + commit_message: ${{ github.event.head_commit.message }}
