diff --git a/.github/main.workflow b/.github/main.workflow new file mode 100644 index 0000000..42b9d0e --- /dev/null +++ b/.github/main.workflow @@ -0,0 +1,29 @@ +workflow "Test and Deploy on release" { + on = "release" + resolves = ["Alias deployment"] +} + +action "Build" { + uses = "actions/npm@master" + args = "install" +} + +action "Test" { + needs = "Build" + uses = "actions/npm@master" + args = "test" +} + +action "Deploy to ZEIT" { + needs = "Test" + uses = "actions/zeit-now@666edee2f3632660e9829cb6801ee5b7d47b303d" + args = "--team minelev" + secrets = ["ZEIT_TOKEN"] +} + +action "Alias deployment" { + uses = "actions/zeit-now@666edee2f3632660e9829cb6801ee5b7d47b303d" + needs = ["Deploy to ZEIT"] + args = "alias --team minelev" + secrets = ["ZEIT_TOKEN"] +} \ No newline at end of file