fix: shasum file in release ci (#109)

This commit is contained in:
Jeremy 2024-11-06 15:29:22 +08:00 committed by GitHub
parent 7b60eae6d4
commit 93a0cefcfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 5 deletions

View File

@ -82,7 +82,7 @@ jobs:
- name: Post sha256
uses: actions/upload-artifact@v4
with:
name: sha256sums
name: sha256sums-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}
path: ./_bin/sha256-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}.txt
retention-days: 1
upload-sha256sums-plugin:
@ -98,12 +98,14 @@ jobs:
- name: Download sha256sums
uses: actions/download-artifact@v4.1.7
with:
name: sha256sums
name: 'sha256sums-*'
path: sha256sums
- shell: bash
run: |
for file in *.txt
cd sha256sums
for file in */*.txt
do
cat ${file} >> sha256sums.txt
cat ${file} >> ../sha256sums.txt
done
- name: Upload Checksums
uses: actions/upload-release-asset@v1.0.2
@ -113,4 +115,4 @@ jobs:
asset_name: sha256sums-${{ steps.get_release.outputs.tag_name }}.txt
asset_content_type: text/plain
- name: Update kubectl plugin version in krew-index
uses: rajatjindal/krew-release-bot@v0.0.43
uses: rajatjindal/krew-release-bot@v0.0.43