mirror of
https://github.com/CyberL1/holesail-proxy.git
synced 2025-02-22 18:19:21 -05:00
Merge pull request #1 from CyberL1/version-test
This commit is contained in:
commit
3566169f14
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user