From c0c1d3cb42a53736be3babb397b9888e854eea16 Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Sun, 16 Feb 2025 09:58:03 +0100 Subject: [PATCH] test: env.RELEASE_VERSION --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f603e7c..017c186 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,11 +28,13 @@ jobs: uses: actions/setup-go@v4 with: go-version: '1.23' + - name: Set env + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Build binary run: | export GOOS=${{ matrix.os }} export GOARCH=${{ matrix.arch }} - go build -ldflags "-X holesail-proxy/utils.Version=1" + go build -ldflags "-X holesail-proxy/utils.Version=${{ env.RELEASE_VERSION }}" - name: Pack binary run: zip holesail-proxy-${{ matrix.os }}-${{ matrix.arch }}.zip holesail-proxy${{ matrix.os == 'windows' && '.exe' || '' }} - name: Create release