Skip to content

Commit

Permalink
Merge pull request ant-design#17751 from ant-design/github-workflow
Browse files Browse the repository at this point in the history
Add deploy workflow
  • Loading branch information
yesmeck authored Jul 19, 2019
2 parents d6e14ef + 287010d commit 3ad39bb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -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"]
}

0 comments on commit 3ad39bb

Please sign in to comment.