From d6dba07dc633c494b0ecd2856dd00904f9917ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20H=C3=BChn?= Date: Sun, 5 May 2024 07:47:09 +0200 Subject: [PATCH] Adding GitHub Action workflow. Based on "Go Release Binaries" (https://github.com/marketplace/actions/go-release-binaries). --- .github/workflows/build-go.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build-go.yaml diff --git a/.github/workflows/build-go.yaml b/.github/workflows/build-go.yaml new file mode 100644 index 0000000..4486815 --- /dev/null +++ b/.github/workflows/build-go.yaml @@ -0,0 +1,29 @@ +# .github/workflows/release.yaml + +on: + release: + types: [created] + +permissions: + contents: write + packages: write + +jobs: + releases-matrix: + name: Release Go Binary + runs-on: ubuntu-latest + strategy: + matrix: + goos: [linux, windows] + goarch: [amd64, arm64] + exclude: + - goarch: arm64 + goos: windows + steps: + - uses: actions/checkout@v4 + - uses: wangyoucao577/go-release-action@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + extra_files: LICENSE README.md