You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2021/02/25 05:28:33 UTC

[apisix-website] branch juzhiyuan-patch-1 created (now 1624b5c)

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

juzhiyuan pushed a change to branch juzhiyuan-patch-1
in repository https://gitbox.apache.org/repos/asf/apisix-website.git.


      at 1624b5c  Update updateDocs.yaml

This branch includes the following new commits:

     new 1624b5c  Update updateDocs.yaml

The 1 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.



[apisix-website] 01/01: Update updateDocs.yaml

Posted by ju...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch juzhiyuan-patch-1
in repository https://gitbox.apache.org/repos/asf/apisix-website.git

commit 1624b5cc71099323c1d74d9a8e7244c1e7294517
Author: 琚致远 <ju...@apache.org>
AuthorDate: Thu Feb 25 13:28:27 2021 +0800

    Update updateDocs.yaml
---
 .github/workflows/updateDocs.yaml | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/updateDocs.yaml b/.github/workflows/updateDocs.yaml
index 924174a..7801876 100644
--- a/.github/workflows/updateDocs.yaml
+++ b/.github/workflows/updateDocs.yaml
@@ -3,6 +3,8 @@ name: Sync Docs from projects
 on:
   push:
     branches: [master]
+  pull_request:
+    branches: [master]
   schedule:
     # Run everyday at 6:00 AM (See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07)
     - cron: "0 6 * * *"
@@ -21,10 +23,10 @@ jobs:
         run: |
           node pullDocs.js && git status
 
-      - name: Add & Commit
-        run: |
-          git config user.name github-actions
-          git config user.email github-actions@github.com
-          git add .
-          git commit -m "docs: update docs (by GitHub Action)"
-          git push
+      - name: Deploy
+        uses: peaceiris/actions-gh-pages@v3
+        #if: github.event_name == 'push' && github.ref == 'refs/heads/master'
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          publish_dir: .
+          publish_branch: master