You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dolphinscheduler.apache.org by li...@apache.org on 2019/11/01 02:14:45 UTC
[incubator-dolphinscheduler-website] branch master updated: modify
auto deploy
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
The following commit(s) were added to refs/heads/master by this push:
new bb56074 modify auto deploy
new 9f0709b Merge pull request #23 from khadgarmage/feature-autodeploy
bb56074 is described below
commit bb5607483094f919e27450357fbd61f09f0c2ad0
Author: xiaochun.liu <kh...@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