From 287010d5a623c179d1239e3cc96d50b78031c054 Mon Sep 17 00:00:00 2001 From: Meck Zhu Date: Fri, 19 Jul 2019 19:57:02 +0800 Subject: [PATCH] Add deploy workflow --- .github/main.workflow | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/main.workflow diff --git a/.github/main.workflow b/.github/main.workflow new file mode 100644 index 000000000000..495b941ba524 --- /dev/null +++ b/.github/main.workflow @@ -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"] +}