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 }} GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: 0 CGO_ENABLED: 0
run: | run: |
mkdir -p dist/bin mkdir -p dist
go build -o "dist/bin/${BINARY_NAME}" . outfile="${BINARY_NAME}_${{ matrix.goos }}_${{ matrix.goarch }}"
go build -o "dist/${outfile}" .
- name: Package binary only
run: |
cd dist/bin
tar -czf "../${BINARY_NAME}_${{ matrix.goos }}_${{ matrix.goarch }}.tar.gz" "${BINARY_NAME}"
- name: Upload binary artifact - name: Upload binary artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ${{ env.BINARY_NAME }}_${{ matrix.goos }}_${{ matrix.goarch }} 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: source: