Update main.workflow

This commit is contained in:
信鑫-King 2019-08-17 15:15:51 +08:00 committed by GitHub
parent 7c5821fcc5
commit 35850c7bf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

15
.github/main.workflow vendored
View File

@ -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"
}
}