You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by ji...@apache.org on 2022/09/15 05:21:34 UTC

[incubator-hugegraph-doc] branch master updated (bc24fd70 -> b63473e0)

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

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


    from bc24fd70 Update contribution.md
     new 5b3baf39 init hugo.yml.
     new 7ea36b5b init hugo.yml + 1.
     new c946090c Update hugo.yml
     new b70115d9 refactor steps
     new ce905f5b Update hugo.yml
     new b63473e0 keep .asf.yaml & commit message

The 6 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/hugo.yml | 70 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)
 create mode 100644 .github/workflows/hugo.yml


[incubator-hugegraph-doc] 01/06: init hugo.yml.

Posted by ji...@apache.org.
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 5b3baf39ae59d047709a55073f830050bfff44b8
Author: DamonXue(Fibonacci) <Da...@gmail.com>
AuthorDate: Mon Sep 12 15:23:56 2022 +0800

    init hugo.yml.
---
 .github/workflows/hugo.yml | 87 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 87 insertions(+)

diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml
new file mode 100644
index 00000000..2bd95a36
--- /dev/null
+++ b/.github/workflows/hugo.yml
@@ -0,0 +1,87 @@
+# 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.
+
+# Sample workflow for building and deploying a Hugo site to GitHub Pages
+name: Deploy Hugo site to Pages
+
+on:
+  # Runs on pushes targeting the default branch
+  pull_request:
+  push:
+    branches: ["master"]
+
+  # Allows you to run this workflow manually from the Actions tab
+  # workflow_dispatch:
+
+# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
+permissions:
+  contents: read
+  pages: write
+  id-token: write
+
+# Allow one concurrent deployment
+concurrency:
+  group: "pages"
+  cancel-in-progress: true
+
+# Default to bash
+defaults:
+  run:
+    shell: bash
+
+jobs:
+  # Build job
+  build:
+    runs-on: ubuntu-latest
+    env:
+      HUGO_VERSION: 0.102.3
+    steps:
+      - uses: actions/checkout@v3
+        with:
+          submodules: true  # Fetch Hugo themes (true OR recursive)
+          fetch-depth: 0    # Fetch all history for .GitInfo and .Lastmod
+
+      - name: Setup Node
+          uses: actions/setup-node@v2.4.0
+          with:
+            node-version: "16"
+            
+      - name: Setup Hugo
+        uses: peaceiris/actions-hugo@v2
+        with:
+          hugo-version: 'latest'
+          extended: true
+          
+      - uses: actions/cache@v2
+        with:
+          path: /tmp/hugo_cache
+          key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
+          restore-keys: |
+            ${{ runner.os }}-hugomod-
+
+      - name: Build Site
+        env:
+          HUGO_ENV: production
+        run: hugo --minify
+
+      - name: Deploy
+        uses: peaceiris/actions-gh-pages@v3
+        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


[incubator-hugegraph-doc] 06/06: keep .asf.yaml & commit message

Posted by ji...@apache.org.
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 <ji...@apache.org>
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/setup-node@v2.4.0
         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 }}


[incubator-hugegraph-doc] 03/06: Update hugo.yml

Posted by ji...@apache.org.
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 c946090c8e3845fa2209a97ed1b1858bafcc9921
Author: imbajin <ji...@apache.org>
AuthorDate: Wed Sep 14 15:44:26 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 f2709b71..52af7bec 100644
--- a/.github/workflows/hugo.yml
+++ b/.github/workflows/hugo.yml
@@ -27,7 +27,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
 
@@ -78,7 +78,7 @@ jobs:
 
       - name: Deploy
         uses: peaceiris/actions-gh-pages@v3
-        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


[incubator-hugegraph-doc] 04/06: refactor steps

Posted by ji...@apache.org.
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 b70115d92031fb60b60b4006c9b8ea05133551b5
Author: imbajin <ji...@apache.org>
AuthorDate: Wed Sep 14 16:46:36 2022 +0800

    refactor steps
---
 .github/workflows/hugo.yml | 54 ++++++++++++++++------------------------------
 1 file changed, 18 insertions(+), 36 deletions(-)

diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml
index 52af7bec..d9451f2a 100644
--- a/.github/workflows/hugo.yml
+++ b/.github/workflows/hugo.yml
@@ -14,39 +14,24 @@
 # limitations under the License.
 
 # Sample workflow for building and deploying a Hugo site to GitHub Pages
-name: Deploy Hugo site to Pages
+# Refer: https://github.com/marketplace/actions/github-pages-action
+name: Deploy site to pages (hugo)
 
 on:
-  # Runs on pushes targeting the default branch
   pull_request:
   push:
-    branches: ["master"]
-
-  # Allows you to run this workflow manually from the Actions tab
-  # workflow_dispatch:
-
-# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
-permissions:
-  contents: write # old: read
-  pages: write
-  id-token: write
-
-# Allow one concurrent deployment
-concurrency:
-  group: "pages"
-  cancel-in-progress: true
-
-# Default to bash
-defaults:
-  run:
-    shell: bash
+    branches: ["master"] # Set a branch name to trigger deployment
 
 jobs:
-  # Build job
-  build:
+  deploy:
     runs-on: ubuntu-latest
-    env:
-      HUGO_VERSION: 0.102.3
+    permissions:
+      contents: write
+      pages: write
+      id-token: write
+    concurrency:
+      group: ${{ github.workflow }}-${{ github.ref }}
+    # Hugo steps
     steps:
       - uses: actions/checkout@v3
         with:
@@ -57,13 +42,13 @@ jobs:
         uses: actions/setup-node@v2.4.0
         with:
           node-version: "16"
-            
+
       - name: Setup Hugo
         uses: peaceiris/actions-hugo@v2
         with:
-          hugo-version: 'latest'
+          hugo-version: '0.102.3'
           extended: true
-          
+
       - uses: actions/cache@v2
         with:
           path: /tmp/hugo_cache
@@ -71,17 +56,14 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-hugomod-
 
-      - name: Build Site
-        env:
-          HUGO_ENV: production
+      - name: Build Site (minify)
         run: hugo --minify
 
-      - name: Deploy
+      - name: Deploy Site
         uses: peaceiris/actions-gh-pages@v3
-        if: github.event_name == 'push' # && github.ref == 'refs/heads/master'
+        if: ${{ github.ref == 'refs/heads/master' }}
         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


[incubator-hugegraph-doc] 02/06: init hugo.yml + 1.

Posted by ji...@apache.org.
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 7ea36b5b4976ddc5a6bfedd1f8e358026b1b5a1c
Author: DamonXue(Fibonacci) <Da...@gmail.com>
AuthorDate: Mon Sep 12 15:29:11 2022 +0800

    init hugo.yml + 1.
---
 .github/workflows/hugo.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml
index 2bd95a36..f2709b71 100644
--- a/.github/workflows/hugo.yml
+++ b/.github/workflows/hugo.yml
@@ -54,9 +54,9 @@ jobs:
           fetch-depth: 0    # Fetch all history for .GitInfo and .Lastmod
 
       - name: Setup Node
-          uses: actions/setup-node@v2.4.0
-          with:
-            node-version: "16"
+        uses: actions/setup-node@v2.4.0
+        with:
+          node-version: "16"
             
       - name: Setup Hugo
         uses: peaceiris/actions-hugo@v2


[incubator-hugegraph-doc] 05/06: Update hugo.yml

Posted by ji...@apache.org.
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 ce905f5bd7e41707d21e422679d925ee5329b5c0
Author: imbajin <ji...@apache.org>
AuthorDate: Wed Sep 14 16:49:55 2022 +0800

    Update hugo.yml
---
 .github/workflows/hugo.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml
index d9451f2a..0514b61b 100644
--- a/.github/workflows/hugo.yml
+++ b/.github/workflows/hugo.yml
@@ -15,7 +15,7 @@
 
 # Sample workflow for building and deploying a Hugo site to GitHub Pages
 # Refer: https://github.com/marketplace/actions/github-pages-action
-name: Deploy site to pages (hugo)
+name: Deploy Site (hugo)
 
 on:
   pull_request: