Skip to content

Commit

Permalink
zip release binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
pvainio committed Apr 28, 2024
1 parent 3b54774 commit 6305c87
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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

0 comments on commit 6305c87

Please sign in to comment.