From 2d22407e459188f80bb10c6a3315b201b04f265c Mon Sep 17 00:00:00 2001 From: Avi Deitcher Date: Sun, 12 Nov 2023 11:43:10 +0200 Subject: [PATCH] cut release on tag Signed-off-by: Avi Deitcher --- .github/workflows/release.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 489fe385..cdd3ba17 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,6 +22,25 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Set up Go + uses: actions/setup-go@v1 + with: + go-version: 1.20 + - name: Build with xgo + uses: crazy-max/ghaction-xgo@v1 + with: + xgo_version: latest + go_version: 1.20 + dest: dist + targets: windows/386,windows/amd64,linux/386,linux/amd64,darwin/386,darwin/amd64 + v: true + x: true + ldflags: -s -w + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: | + dist/* - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx