derp put the binaries in tar

This commit is contained in:
Salastil
2025-11-23 03:44:55 -05:00
parent 9865fd675a
commit be55b4e295

View File

@@ -44,19 +44,16 @@ jobs:
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: 0
run: |
mkdir -p dist/bin
go build -o "dist/bin/${BINARY_NAME}" .
- name: Package binary only
run: |
cd dist/bin
tar -czf "../${BINARY_NAME}_${{ matrix.goos }}_${{ matrix.goarch }}.tar.gz" "${BINARY_NAME}"
mkdir -p dist
outfile="${BINARY_NAME}_${{ matrix.goos }}_${{ matrix.goarch }}"
go build -o "dist/${outfile}" .
- name: Upload binary artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.BINARY_NAME }}_${{ matrix.goos }}_${{ matrix.goarch }}
path: dist/${{ env.BINARY_NAME }}_${{ matrix.goos }}_${{ matrix.goarch }}.tar.gz
path: dist/${{ env.BINARY_NAME }}_${{ matrix.goos }}_${{ matrix.goarch }}
if-no-files-found: error
source: