diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 366d218..045f69f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: CGO_ENABLED: 0 run: | go version - go build -tags netgo -ldflags '-a -s -w -extldflags "-static"' -o ./artifacts/transfersh-${GITHUB_REF##*/}-${{ matrix.suffix }} + go build -tags netgo -ldflags '-X github.com/dutchcoders/transfer.sh/cmd.Version=${GITHUB_REF##*/} -a -s -w -extldflags "-static"' -o ./artifacts/transfersh-${GITHUB_REF##*/}-${{ matrix.suffix }} - uses: actions/upload-artifact@v2 name: Upload artifacts with: diff --git a/cmd/cmd.go b/cmd/cmd.go index e840e32..7255ead 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -12,7 +12,7 @@ import ( "google.golang.org/api/googleapi" ) -var Version = "1.2.4" +var Version = "0.0.0" var helpTemplate = `NAME: {{.Name}} - {{.Usage}}