Skip to content

Commit

Permalink
Add release to binary name
Browse files Browse the repository at this point in the history
  • Loading branch information
ireneazaceta authored Sep 30, 2024
1 parent 1f91802 commit 3cc06bc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

Expand All @@ -25,7 +23,7 @@ jobs:
go get .
- name: Build the executable
run: env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o ipmitool_exporter ./main.go
run: env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o ipmitool_exporter-${{ github.ref }}-linux-amd64 ./main.go

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

0 comments on commit 3cc06bc

Please sign in to comment.