diff --git a/.github/workflows/binary-build.yml b/.github/workflows/binary-build.yml index bc3f1fb..a551589 100644 --- a/.github/workflows/binary-build.yml +++ b/.github/workflows/binary-build.yml @@ -41,7 +41,7 @@ jobs: - name: Build run: | - CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags="-s -w" -o zurg-v${BUILD_VERSION}-${{ matrix.goos }}-${{ matrix.goarch }} cmd/zurg/main.go + CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags="-s -w" -o zurg-${BUILD_VERSION}-${{ matrix.goos }}-${{ matrix.goarch }} cmd/zurg/main.go # Install and use UPX to compress the binary, but exclude specific combinations - name: Install and Compress with UPX @@ -49,12 +49,12 @@ jobs: run: | sudo apt-get update sudo apt-get install -y upx-ucl - upx --best zurg-v${BUILD_VERSION}-${{ matrix.goos }}-${{ matrix.goarch }} + upx --best zurg-${BUILD_VERSION}-${{ matrix.goos }}-${{ matrix.goarch }} # Zip the binary - name: Zip Binary run: | - zip zurg-v${BUILD_VERSION}-${{ matrix.goos }}-${{ matrix.goarch }}.zip zurg-v${BUILD_VERSION}-${{ matrix.goos }}-${{ matrix.goarch }} + zip zurg-${BUILD_VERSION}-${{ matrix.goos }}-${{ matrix.goarch }}.zip zurg-${BUILD_VERSION}-${{ matrix.goos }}-${{ matrix.goarch }} # List files (for debugging) - name: List files @@ -63,5 +63,5 @@ jobs: - name: Upload Artifacts uses: actions/upload-artifact@v3 with: - name: zurg-v${BUILD_VERSION}-${{ matrix.goos }}-${{ matrix.goarch }}.zip - path: zurg-v${BUILD_VERSION}-${{ matrix.goos }}-${{ matrix.goarch }}.zip + name: zurg-${BUILD_VERSION}-${{ matrix.goos }}-${{ matrix.goarch }}.zip + path: zurg-${BUILD_VERSION}-${{ matrix.goos }}-${{ matrix.goarch }}.zip