From f81537c46929f589191a22349a885eb076024860 Mon Sep 17 00:00:00 2001 From: Galo Navarro Date: Wed, 15 Feb 2023 00:02:44 +0100 Subject: [PATCH] Create a release binary Originally from @ejhayes at #37. Signed-off-by: Galo Navarro --- .github/workflows/release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..cc33ed7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +name: Create Release Binary + +on: + release: + types: [created, edited] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: wangyoucao577/go-release-action@v1.22 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: linux + goarch: amd64 + build_command: make build + overwrite: true + binary_name: action + asset_name: action