add versioning to the built golang program name
This commit is contained in:
4
.github/workflows/go.yml
vendored
4
.github/workflows/go.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
||||
run: sudo apt update && sudo apt install -y libusb-1.0-0-dev
|
||||
|
||||
- name: Build Release
|
||||
run: go build -v -ldflags "-X main.gitVersion=${{ github.ref_name }}" ./...
|
||||
run: go build -v -o go-bsb-cams-v${{ github.ref_name }} -ldflags "-X main.gitVersion=${{ github.ref_name }}" ./...
|
||||
if: github.ref_type == 'tag'
|
||||
|
||||
- name: Build Non-Release
|
||||
@ -37,4 +37,4 @@ jobs:
|
||||
uses: softprops/action-gh-release@v2
|
||||
if: github.ref_type == 'tag'
|
||||
with:
|
||||
files: go-bsb-cams
|
||||
files: go-bsb-cams-v*
|
||||
|
||||
Reference in New Issue
Block a user