Merge pull request #17751 from ant-design/github-workflow

Add deploy workflow
This commit is contained in:
Wei Zhu 2019-07-19 21:42:19 +08:00 committed by GitHub
commit 3ad39bb13a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

14
.github/main.workflow vendored Normal file
View File

@ -0,0 +1,14 @@
workflow "Deploy website" {
on = "release"
resolves = ["Deploy"]
}
action "Deploy" {
uses = "docker://node:10"
runs = [
"sh",
"-c",
"git remote set-url origin https://${DEPLOY_TOKEN}@github.com/ant-design/ant-design.git && npm install && npm run deploy"
],
secrets = ["DEPLOY_TOKEN"]
}