We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70ca4b1 commit 023fabeCopy full SHA for 023fabe
1 file changed
.github/workflows/release.yml
@@ -36,7 +36,9 @@ jobs:
36
if [ "${{ matrix.goos }}" = "windows" ]; then
37
EXT=".exe"
38
fi
39
- GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags="-s -w" -o dist/tinyice-${{ matrix.goos }}-${{ matrix.goarch }}${EXT} main.go
+ VERSION="${{ github.ref_name }}"
40
+ COMMIT="$(git rev-parse HEAD)"
41
+ GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags="-s -w -X main.Version=${VERSION} -X main.Commit=${COMMIT}" -o dist/tinyice-${{ matrix.goos }}-${{ matrix.goarch }}${EXT} main.go
42
43
44
- name: Upload artifacts
0 commit comments