From cd6a7b35c3a0dfab095c89ddc2ff2c10ffe977e6 Mon Sep 17 00:00:00 2001 From: appleboy Date: Sat, 29 Apr 2023 08:29:24 +0800 Subject: [PATCH] ci: improve build process and test coverage (#547) - Add `dir: ./dist/` to the builds section in `.goreleaser.yaml` ref: https://gitea.com/gitea/act_runner/issues/158 Signed-off-by: appleboy Reviewed-on: https://gitea.com/gitea/tea/pulls/547 Reviewed-by: Jason Song Reviewed-by: Lunny Xiao Co-authored-by: appleboy Co-committed-by: appleboy --- .goreleaser.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 0e99b6c..fcef41a 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -72,6 +72,7 @@ builds: hooks: post: - cmd: tar -cJf {{ .Path }}.xz {{ .Path }} + dir: ./dist/ env: - XZ_OPT=-9 - cmd: sh .goreleaser.checksum.sh {{ .Path }} @@ -119,4 +120,4 @@ gitea_urls: download: https://gitea.com # yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json -# vim: set ts=2 sw=2 tw=0 fo=cnqoj \ No newline at end of file +# vim: set ts=2 sw=2 tw=0 fo=cnqoj