Skip to content

Commit

Permalink
Compress binary into .tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
ireneazaceta authored Sep 30, 2024
1 parent fa23440 commit dd5d3cb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ jobs:
go get .
- name: Build the executable
run: env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o ipmitool_exporter-${{ github.ref_name }}-linux-amd64 ./main.go
run: env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o ipmitool_exporter ./main.go

- name: Compress binary
run: tar -czvf ipmitool_exporter-${{ github.ref_name }}-linux-amd64.tar.gz ipmitool_exporter

- name: Create a release
uses: softprops/action-gh-release@v2
Expand All @@ -33,4 +36,4 @@ jobs:
draft: false
prerelease: false
files: |
ipmitool_exporter-${{ github.ref_name }}-linux-amd64
ipmitool_exporter-${{ github.ref_name }}-linux-amd64.tar.gz

0 comments on commit dd5d3cb

Please sign in to comment.