From 0c24caf2d80b0d3affdda6d5c37ef4d3c0f6fd14 Mon Sep 17 00:00:00 2001 From: SPtuan Date: Wed, 28 Dec 2022 18:43:37 +0800 Subject: [PATCH] Create release.yaml --- .github/workflows/release.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..6ce260e --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,22 @@ +on: + release: + types: [created] + +jobs: + releases-matrix: + name: Release Go Binary + runs-on: ubuntu-latest + strategy: + matrix: + # build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64 + goos: [linux] + goarch: [amd64, arm64] + steps: + - uses: actions/checkout@v3 + - uses: wangyoucao577/go-release-action@v1.30 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + build_command: make build + binary_name: "stargazer"