mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-19 06:43:16 +08:00
Update main.workflow
This commit is contained in:
parent
7c5821fcc5
commit
35850c7bf0
15
.github/main.workflow
vendored
15
.github/main.workflow
vendored
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user