Skip to content

Commit

Permalink
add checksums
Browse files Browse the repository at this point in the history
  • Loading branch information
goenning committed Sep 13, 2024
1 parent 2fc1272 commit a7a28ec
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,24 @@ jobs:
- name: Create tar.gz archive (Linux/macOS)
if: runner.os != 'Windows'
run: |
cp target/${{ matrix.target }}/release/kubectl-config-doctor ./kubectl-config_doctor
tar -czvf ${{ matrix.asset_name }} ./kubectl-config_doctor
tar -czvf ${{ matrix.asset_name }} -C target/${{ matrix.target }}/release kubectl-config-doctor
- name: Create zip archive (Windows)
if: runner.os == 'Windows'
run: |
Rename-Item -Path target/${{ matrix.target }}/release/kubectl-config-doctor.exe -NewName "./kubectl-config_doctor.exe"
Compress-Archive -Path ./kubectl-config_doctor.exe -DestinationPath ${{ matrix.asset_name }}
Compress-Archive -Path target/${{ matrix.target }}/release/kubectl-config-doctor.exe -DestinationPath ${{ matrix.asset_name }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
file: ${{ matrix.asset_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
tag: ${{ github.ref }}
sha256sum:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Add Checksums
uses: wangzuo/action-release-checksums@v1

0 comments on commit a7a28ec

Please sign in to comment.