diff --git a/.github/main.workflow b/.github/main.workflow new file mode 100644 index 0000000..21d7838 --- /dev/null +++ b/.github/main.workflow @@ -0,0 +1,35 @@ +workflow "Build" { + on = "release" + resolves = [ + "release darwin/amd64", + "release windows/amd64", + "release linux/amd64", + ] +} + +action "release darwin/amd64" { + uses = "ngs/go-release.action@v1.0.0" + env = { + GOOS = "darwin" + GOARCH = "amd64" + } + secrets = ["GITHUB_TOKEN"] +} + +action "release windows/amd64" { + uses = "ngs/go-release.action@v1.0.0" + env = { + GOOS = "windows" + GOARCH = "amd64" + } + secrets = ["GITHUB_TOKEN"] +} + +action "release linux/amd64" { + uses = "ngs/go-release.action@v1.0.0" + env = { + GOOS = "linux" + GOARCH = "amd64" + } + secrets = ["GITHUB_TOKEN"] +} \ No newline at end of file