add versioning to the built golang program name

This commit is contained in:
LilliaElaine
2025-10-23 02:28:45 -04:00
parent ba3404b7b8
commit 4c2912ce1d

View File

@ -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*