1
0
mirror of https://github.com/nitezs/sub2sing-box.git synced 2024-12-23 20:14:42 -05:00

update: goreleaser

This commit is contained in:
Nite07 2024-03-19 22:27:52 +08:00
parent 4d9e2083b4
commit 1cbb5dadfc
3 changed files with 39 additions and 1 deletions

View File

@ -26,6 +26,6 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist --clean
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

34
.goreleaser.pre.yaml Normal file
View File

@ -0,0 +1,34 @@
project_name: sub2sing-box
builds:
- env:
- CGO_ENABLED=0
goos:
- windows
- linux
- darwin
goarch:
- amd64
- arm64
- arm
- "386"
ldflags:
- -s -w -X sub2sing-box/main.Version={{ .Version }}
flags:
- -trimpath
no_unique_dist_dir: true
archives:
- format: tar.gz
format_overrides:
- format: zip
goos: windows
wrap_in_directory: true
files:
- LICENSE
- README.md
- templates
release:
prerelease: auto
draft: true
github:
owner: nitezs
name: sub2sing-box

View File

@ -26,3 +26,7 @@ archives:
- LICENSE
- README.md
- templates
release:
github:
owner: nitezs
name: sub2sing-box