diff --git a/.github/main.workflow b/.github/main.workflow index d6a1a617a4..6625e9a191 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -4,11 +4,13 @@ workflow "Deploy website" { } action "Deploy" { - uses = "docker://node:10" - 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"] + uses = "JamesIves/github-pages-deploy-action@master" + secrets = [ + "ACCESS_TOKEN", + ] + env = { + BUILD_SCRIPT = "npm install && npm run predeploy" + BRANCH = "gh-pages" + FOLDER = "_site" + } }