From ee062004534ba1780e9cdf551551d9bcb3e7a57e Mon Sep 17 00:00:00 2001 From: yzqzss Date: Sun, 9 Jun 2024 03:58:29 +0800 Subject: [PATCH] fix upx? --- .gitea/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 71be134..4fa8416 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -31,7 +31,7 @@ jobs: project_path: ./cmd/... upload: false # output is release_asset_dir - - name: rename artifact and compress with upx + - name: rename artifact # append os and arch to the artifact name (handle windows .exe) run: | cd ${{ steps.go-release-action.outputs.release_asset_dir }} @@ -40,11 +40,15 @@ jobs: noextname=$(basename "$f" .exe) mv "$f" "${noextname}-${{ matrix.goos }}-${{ matrix.goarch }}.exe" else - upx -v "$f" mv "$f" "${f}-${{ matrix.goos }}-${{ matrix.goarch }}" fi done cd - + - name: Compress binaries + uses: svenstaro/upx-action@v2 + with: + files: | + ${{ steps.go-release-action.outputs.release_asset_dir }}/** - uses: akkuman/gitea-release-action@v1 with: files: |-