From b49834185777fffed9e0b4d7c3b08ad82fcdbcfa Mon Sep 17 00:00:00 2001 From: appleboy Date: Mon, 1 May 2023 21:59:43 +0800 Subject: [PATCH] build: improve compression and update GitHub actions (#168) - Add `dist` to .gitignore for gorelease binary folder - Replace tar command with xz command in .goreleaser.yaml for better compression ref: https://gitea.com/gitea/homebrew-gitea/pulls/164 Signed-off-by: appleboy Reviewed-on: https://gitea.com/gitea/act_runner/pulls/168 Reviewed-by: techknowlogick Co-authored-by: appleboy Co-committed-by: appleboy --- .gitignore | 2 ++ .goreleaser.yaml | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index d9d87a5..38e1b26 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ coverage.txt # MS VSCode .vscode __debug_bin +# gorelease binary folder +dist diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 5aade0e..5e6de63 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -71,10 +71,8 @@ builds: no_unique_dist_dir: true hooks: post: - - cmd: tar -cJf {{ .Path }}.xz {{ .Path }} + - cmd: xz -k -9 {{ .Path }} dir: ./dist/ - env: - - XZ_OPT=-9 - cmd: sh .goreleaser.checksum.sh {{ .Path }} - cmd: sh .goreleaser.checksum.sh {{ .Path }}.xz