derp put the binaries in tar
This commit is contained in:
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user