mirror of
https://github.com/nitezs/sub2sing-box.git
synced 2024-12-23 14:04:41 -05:00
update: goreleaser
This commit is contained in:
parent
4d9e2083b4
commit
1cbb5dadfc
2
.github/workflows/goreleaser.yaml
vendored
2
.github/workflows/goreleaser.yaml
vendored
@ -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
34
.goreleaser.pre.yaml
Normal 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
|
@ -26,3 +26,7 @@ archives:
|
||||
- LICENSE
|
||||
- README.md
|
||||
- templates
|
||||
release:
|
||||
github:
|
||||
owner: nitezs
|
||||
name: sub2sing-box
|
||||
|
Loading…
Reference in New Issue
Block a user