build: using gh actions
This commit is contained in:
parent
ec25603694
commit
e629d8fe36
1 changed files with 36 additions and 0 deletions
36
.github/main.workflow
vendored
Normal file
36
.github/main.workflow
vendored
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
workflow "Deploy workflow" {
|
||||||
|
on = "push"
|
||||||
|
resolves = ["Deploy"]
|
||||||
|
}
|
||||||
|
|
||||||
|
action "Install" {
|
||||||
|
uses = "docker://node:alpine"
|
||||||
|
runs = "yarn"
|
||||||
|
args = "install"
|
||||||
|
}
|
||||||
|
|
||||||
|
action "Lint" {
|
||||||
|
uses = "docker://node:alpine"
|
||||||
|
needs = ["Install"]
|
||||||
|
runs = "yarn"
|
||||||
|
args = "lint"
|
||||||
|
}
|
||||||
|
|
||||||
|
action "Build" {
|
||||||
|
uses = "docker://node:alpine"
|
||||||
|
needs = ["Lint"]
|
||||||
|
runs = "yarn"
|
||||||
|
args = "build"
|
||||||
|
}
|
||||||
|
|
||||||
|
action "Ensure publish branch" {
|
||||||
|
needs = "Build"
|
||||||
|
uses = "actions/bin/filter@46ffca7632504e61db2d4cb16be1e80f333cb859"
|
||||||
|
args = "branch publish"
|
||||||
|
}
|
||||||
|
|
||||||
|
action "Deploy" {
|
||||||
|
uses = "haishanh/actions/gh-pages@master"
|
||||||
|
needs = ["Ensure publish branch"]
|
||||||
|
secrets = ["TOKEN"]
|
||||||
|
}
|
Loading…
Reference in a new issue