Skip to content

Commit eebd8a9

Browse files
committed
update binaries
1 parent ba011aa commit eebd8a9

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,32 +31,22 @@ jobs:
3131
${{ runner.os }}-go-
3232
- name: Build binary (Unix)
3333
if: matrix.os == 'ubuntu-latest'
34-
run: CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o kube-lineage ./cmd/kube-lineage
34+
run: CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o kube-lineage-${{ matrix.os }}-${{ github.ref_name }} ./cmd/kube-lineage
3535

3636
- name: Build binary (Arm)
3737
if: matrix.os == 'macos-latest'
38-
run: CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o kube-lineage ./cmd/kube-lineage
38+
run: CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o kube-lineage-${{ matrix.os }}-${{ github.ref_name }} ./cmd/kube-lineage
3939

4040
- name: Build binary (Windows)
4141
if: matrix.os == 'windows-latest'
4242
run: CGO_ENABLED=0 GOOS=windows go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o kube-lineage.exe ./cmd/kube-lineage
4343

44-
- name: Zip the application (Unix)
45-
if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest'
46-
run: |
47-
zip -r kube-lineage-${{ matrix.os }}-${{ github.ref_name }}.zip kube-lineage
48-
49-
- name: Zip the application (Windows)
50-
if: matrix.os == 'windows-latest'
51-
run: |
52-
Compress-Archive -Path kube-lineage.exe -DestinationPath kube-lineage-${{ matrix.os }}-${{ github.ref_name }}.zip -Force
53-
5444
- name: Upload Release Asset
5545
uses: actions/[email protected]
5646
env:
5747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5848
with:
5949
upload_url: ${{ github.event.release.upload_url }}
60-
asset_path: ./kube-lineage-${{ matrix.os }}-${{ github.ref_name }}.zip
61-
asset_name: kube-lineage-${{ matrix.os }}-${{ github.ref_name }}.zip
50+
asset_path: ./kube-lineage-${{ matrix.os }}-${{ github.ref_name }}
51+
asset_name: kube-lineage-${{ matrix.os }}-${{ github.ref_name }}
6252
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)