Browse Source
Merge pull request #18320 from ant-design/chore-ghpages-action
Update main.workflow
pull/18322/head
信鑫-King
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
7 deletions
-
.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" |
|
|
|
} |
|
|
|
} |
|
|
|