From 653a531eabddb572362b570525101699dcaecc0a Mon Sep 17 00:00:00 2001 From: Hongming Wang Date: Thu, 16 Apr 2026 03:50:28 -0700 Subject: [PATCH] =?UTF-8?q?ci:=20add=20Go=20binary=20release=20workflow=20?= =?UTF-8?q?(tag=20v*=20=E2=86=92=20GitHub=20Releases)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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..4564925 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: Release Go binaries +on: + push: + tags: ['v*'] +permissions: + contents: write +jobs: + release: + runs-on: ubuntu-latest + strategy: + matrix: + include: + - goos: linux + goarch: amd64 + - goos: linux + goarch: arm64 + - goos: darwin + goarch: amd64 + - goos: darwin + goarch: arm64 + - goos: windows + goarch: amd64 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: { go-version: '1.25' } + - name: Build + run: | + GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} \ + go build -o molecli-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goos == 'windows' && '.exe' || '' }} \ + ./cmd/molecli + - uses: softprops/action-gh-release@v2 + with: + files: molecli-*