Skip to content

Commit

Permalink
ci: update build command
Browse files Browse the repository at this point in the history
Added version from tag in build command
  • Loading branch information
gibiw committed Jan 30, 2025
1 parent 83c2129 commit 7be31ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
- name: Build the binary for ${{ matrix.os }}-${{ matrix.arch }}
run: |
if [ "${{ matrix.os }}" == "windows" ]; then
GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o -ldflags="-X github.com/qase-tms/qasectl/internal.Version=${{ env.TAG }}" "build/qasectl-${{ matrix.os }}-${{ matrix.arch }}.exe" ./main.go
GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -ldflags="-X github.com/qase-tms/qasectl/internal.Version=${{ env.TAG }}" -o "build/qasectl-${{ matrix.os }}-${{ matrix.arch }}.exe" ./main.go
else
GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o -ldflags="-X github.com/qase-tms/qasectl/internal.Version=${{ env.TAG }}" "build/qasectl-${{ matrix.os }}-${{ matrix.arch }}" ./main.go
GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -ldflags="-X github.com/qase-tms/qasectl/internal.Version=${{ env.TAG }}" -o "build/qasectl-${{ matrix.os }}-${{ matrix.arch }}" ./main.go
fi
- name: Create GitHub release
Expand Down

0 comments on commit 7be31ec

Please sign in to comment.