Files
AllinSSL/.goreleaser.yml
YANGJINZE 24efcf3763 debug ci
2025-05-15 14:54:02 +08:00

51 lines
1.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# .goreleaser.yml
version: 2
# 在快照模式下不要尝试创建GitHub release
release:
disable: true
before:
hooks:
# 删除已有的frontend文件夹
- rm -rf frontend || true
# 复制build到frontend
- cp -r build frontend || true
# 打包前先执行一些必要的操作
- go mod tidy
# 源代码配置
source:
enabled: true
prefix_template: '{{ .ProjectName }}-source'
archives:
- format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
files:
- LICENSE
- README.md
- src: "frontend/**/*"
dst: "frontend"
- src: "script/allinssl.sh"
dst: "allinssl.sh"
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/main.go
goos:
- linux
- darwin
- windows
goarch:
- "386"
- amd64
- arm
- arm64
goarm:
- "7"
ignore:
- goos: windows
goarch: arm
- goarch: ppc64