From bdc064297abb1cea5cb10012d5bfaf81e16a81a3 Mon Sep 17 00:00:00 2001 From: pwnedgod Date: Thu, 21 Sep 2023 23:51:04 +0900 Subject: [PATCH] add release CI --- .github/workflows/release-binary.yml | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/release-binary.yml diff --git a/.github/workflows/release-binary.yml b/.github/workflows/release-binary.yml new file mode 100644 index 0000000..26e7d29 --- /dev/null +++ b/.github/workflows/release-binary.yml @@ -0,0 +1,36 @@ +on: + release: + types: + - created + +permissions: + contents: write + packages: write + +jobs: + release-binary: + name: Release Go Binary + runs-on: ubuntu-latest + strategy: + matrix: + goos: + - linux + - windows + - darwin + goarch: + - "386" + - amd64 + - arm64 + exclude: + - goarch: "386" + goos: darwin + - goarch: arm64 + goos: windows + steps: + - uses: actions/checkout@v3 + - uses: wangyoucao577/go-release-action@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: "1.20"