diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 251f5ba..71be134 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -28,11 +28,10 @@ jobs: goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} multi_binaries: true - executable_compression: upx -v project_path: ./cmd/... upload: false # output is release_asset_dir - - name: rename artifact + - name: rename artifact and compress with upx # append os and arch to the artifact name (handle windows .exe) run: | cd ${{ steps.go-release-action.outputs.release_asset_dir }} @@ -41,6 +40,7 @@ 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