Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
cpu

GitHub Action

Go Release Binary

v1.0.1

Go Release Binary

cpu

Go Release Binary

Automate publishing Go build artifacts for GitHub releases

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Go Release Binary

uses: ngs/[email protected]

Learn more about this action in ngs/go-release.action

Choose a version

Go Release Binary GitHub Action

Automate publishing Go build artifacts for GitHub releases through GitHub Actions

# .github/main.workflow

workflow "Build" {
  on = "release"
  resolves = [
    "release darwin/amd64",
    "release windows/amd64",
    "release linux/amd64",
  ]
}

action "release darwin/amd64" {
  uses = "ngs/[email protected]"
  env = {
    GOOS = "darwin"
    GOARCH = "amd64"
  }
  secrets = ["GITHUB_TOKEN"]
}

action "release windows/amd64" {
  uses = "ngs/[email protected]"
  env = {
    GOOS = "windows"
    GOARCH = "amd64"
  }
  secrets = ["GITHUB_TOKEN"]
}

action "release linux/amd64" {
  uses = "ngs/[email protected]"
  env = {
    GOOS = "linux"
    GOARCH = "amd64"
  }
  secrets = ["GITHUB_TOKEN"]
}