From 35850c7bf03addc62fcd4827299481f1e20fed7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BF=A1=E9=91=AB-King?= <45808948@qq.com> Date: Sat, 17 Aug 2019 15:15:51 +0800 Subject: [PATCH 1/2] Update main.workflow --- .github/main.workflow | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index d6a1a617a4..bc851813d0 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -4,11 +4,18 @@ workflow "Deploy website" { } action "Deploy" { - uses = "docker://node:10" + uses = "JamesIves/github-pages-deploy-action@master" runs = [ "sh", "-c", - "git config user.name antd-actions-bot && git config --local user.email support+actions@github.com && git remote set-url origin https://${DEPLOY_TOKEN}@github.com/ant-design/ant-design.git && npm install && npm run deploy" - ], - secrets = ["DEPLOY_TOKEN"] + "git config user.name antd-actions-bot && git config --local user.email support+actions@github.com && git remote set-url origin https://${DEPLOY_TOKEN}@github.com/ant-design/ant-design.git && npm install && npm run deploy", + ] + secrets = [ + "ACCESS_TOKEN", + ] + env = { + BUILD_SCRIPT = "npm install && npm run predeploy" + BRANCH = "gh-pages" + FOLDER = "_site" + } } From ac087aa7e8bd44fdf9a1a2b40cf1bcc6cb88039b Mon Sep 17 00:00:00 2001 From: ycjcl868 <45808948@qq.com> Date: Sat, 17 Aug 2019 15:16:44 +0800 Subject: [PATCH 2/2] fix: deploy --- .github/main.workflow | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index bc851813d0..6625e9a191 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -5,11 +5,6 @@ workflow "Deploy website" { action "Deploy" { uses = "JamesIves/github-pages-deploy-action@master" - runs = [ - "sh", - "-c", - "git config user.name antd-actions-bot && git config --local user.email support+actions@github.com && git remote set-url origin https://${DEPLOY_TOKEN}@github.com/ant-design/ant-design.git && npm install && npm run deploy", - ] secrets = [ "ACCESS_TOKEN", ]