From 6305c876ab5848000ebb4f3733d4d94aed258ed5 Mon Sep 17 00:00:00 2001 From: Pekka Vainio Date: Sun, 28 Apr 2024 11:34:03 +0300 Subject: [PATCH] zip release binaries --- .github/workflows/build.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4e3ac51..cef560b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,26 +20,31 @@ jobs: GOOS: linux GOARCH: arm64 CGO_ENABLED: 0 - run: go build -ldflags="-s -w" -o vallox-mqtt-arm64 . + run: go build -ldflags="-s -w" -o vallox-mqtt/vallox-mqtt-arm64 . - name: Build arm env: GOOS: linux GOARCH: arm CGO_ENABLED: 0 - run: go build -ldflags="-s -w" -o vallox-mqtt-arm . + run: go build -ldflags="-s -w" -o vallox-mqtt/vallox-mqtt-arm . - name: Build amd64 env: GOOS: linux GOARCH: amd64 CGO_ENABLED: 0 - run: go build -ldflags="-s -w" -o vallox-mqtt-amd64 . + run: go build -ldflags="-s -w" -o vallox-mqtt/vallox-mqtt-amd64 . + - name: Archive Release + uses: thedoctor0/zip-release@0.7.6 + with: + type: 'zip' + filename: 'vallox-mqtt-all-archs.zip' + path: 'vallox-mqtt' - name: Release uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') with: files: | - vallox-mqtt-arm64 - vallox-mqtt-arm - vallox-mqtt-amd64 + vallox-mqtt-archs.zip draft: true generate_release_notes: true + \ No newline at end of file