mirror of
https://github.com/Gu1llaum-3/sshm.git
synced 2025-09-08 13:50:40 +02:00
fix: correct version injection in build process
This commit is contained in:
parent
edf61049fc
commit
44ffa0c31d
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -69,9 +69,9 @@ jobs:
|
|||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
VERSION=${GITHUB_REF#refs/tags/}
|
VERSION=${GITHUB_REF#refs/tags/}
|
||||||
if [ "${{ matrix.goos }}" = "windows" ]; then
|
if [ "${{ matrix.goos }}" = "windows" ]; then
|
||||||
go build -ldflags="-s -w -X sshm/cmd.version=${VERSION}" -o dist/sshm-${{ matrix.suffix }}.exe .
|
go build -ldflags="-s -w -X github.com/Gu1llaum-3/sshm/cmd.version=${VERSION}" -o dist/sshm-${{ matrix.suffix }}.exe .
|
||||||
else
|
else
|
||||||
go build -ldflags="-s -w -X sshm/cmd.version=${VERSION}" -o dist/sshm-${{ matrix.suffix }} .
|
go build -ldflags="-s -w -X github.com/Gu1llaum-3/sshm/cmd.version=${VERSION}" -o dist/sshm-${{ matrix.suffix }} .
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create archive
|
- name: Create archive
|
||||||
|
Loading…
x
Reference in New Issue
Block a user