Skip to content

Commit

Permalink
Merge pull request #3392 from k0sproject/checksums-txt
Browse files Browse the repository at this point in the history
Generate release asset sha256 checksums.txt
  • Loading branch information
twz123 authored Sep 25, 2023
2 parents 1a260ef + 561fd80 commit 84627cf
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,32 @@ jobs:
if: always()
run: find . -type d -not -perm /u+w -exec chmod u+w '{}' \;

checksums:
needs:
- release
- x64
- arm64
- armv7
runs-on: ubuntu-latest
steps:
- name: Download assets for generating checksums
uses: robinraju/[email protected]
with:
tag: ${{ steps.branch_name.outputs.TAG_NAME }}
filename: "*"
out-file-path: release_assets
- name: Generate checksums
run: |
cd release_assets && sha256sum -b * > ../sha256sums.txt
- name: Upload sha256sums.txt
uses: shogo82148/[email protected]
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: sha256sums.txt
asset_name: sha256sums.txt
asset_content_type: text/plain
overwrite: true

build-image:
needs:
- release
Expand Down

0 comments on commit 84627cf

Please sign in to comment.