dolphinscheduler-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lidong...@apache.org
Subject [incubator-dolphinscheduler-website] 26/34: modify auto deploy
Date Thu, 07 Nov 2019 03:15:57 GMT
This is an automated email from the ASF dual-hosted git repository.

lidongdai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler-website.git

commit bb5607483094f919e27450357fbd61f09f0c2ad0
Author: xiaochun.liu <khadgar.mage@outlook.com>
AuthorDate: Fri Nov 1 00:13:32 2019 +0800

    modify auto deploy
---
 .github/workflows/website.yml | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml
index 8309936..092ed05 100644
--- a/.github/workflows/website.yml
+++ b/.github/workflows/website.yml
@@ -9,11 +9,19 @@ jobs:
     - name: Checkout
       uses: actions/checkout@master
 
-    - name: Build and Deploy
-      uses: JamesIves/github-pages-deploy-action@master
+    - name: Use Node.js
+      uses: actions/setup-node@v1
+      with:
+        node-version: 8.16.2
+    - name: Build
+      run: |
+        mkdir dist && npm install && npm i docsite && node_modules/docsite/bin/docsite.js
build && cp -r 404.html index.html en-us zh-cn build img download dist/
+
+    - name: Deploy
+      uses: peaceiris/actions-gh-pages@v2.4.0
       env:
-        ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
-        BASE_BRANCH: master # The branch the action should deploy from.
-        BRANCH: asf-site # The branch the action should deploy to.
-        FOLDER: dist # The folder the action should deploy.
-        BUILD_SCRIPT: mkdir dist && npm install && npm i docsite &&
node_modules/docsite/bin/docsite.js build && cp -r 404.html index.html en-us zh-cn
build img download dist/ # The build script the action should run prior to deploying.
+        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        PUBLISH_BRANCH: asf-site
+        PUBLISH_DIR: ./dist
+      with:
+        keepFiles: true


Mime
View raw message