build: Add apk and archlinux package builds

This commit is contained in:
世界 2023-11-13 15:24:13 +08:00
parent a3ef7a7d88
commit ce164724ea
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 3 additions and 1 deletions

View file

@ -157,6 +157,8 @@ nfpms:
formats:
- deb
- rpm
- apk
- archlinux
priority: extra
contents:
- src: release/config/config.json

View file

@ -61,7 +61,7 @@ proto_install:
release:
go run ./cmd/internal/build goreleaser release --clean --skip-publish || exit 1
mkdir dist/release
mv dist/*.tar.gz dist/*.zip dist/*.deb dist/*.rpm dist/release
mv dist/*.tar.gz dist/*.zip dist/*.deb dist/*.rpm dist/*.apk dist/*.pkg.tar.zst dist/release
ghr --replace --draft --prerelease -p 3 "v${VERSION}" dist/release
rm -r dist/release