Merge pull request #1 from CyberL1/version-test

This commit is contained in:
Cyber 2025-02-16 10:02:28 +01:00 committed by GitHub
commit 3566169f14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
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