Create release-sha256.yml

This commit is contained in:
buildplan 2025-06-29 22:13:39 +01:00 committed by GitHub
parent 289c0f80c5
commit 6154f67ef6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

23
.github/workflows/release-sha256.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Add SHA256 to Release
on:
release:
types: [published]
jobs:
attach-sha256:
runs-on: ubuntu-latest
steps:
- name: Download Source Code
uses: actions/checkout@v4
- name: Generate SHA256
run: |
sha256sum setup_harden_debian_ubuntu.sh > setup_harden_debian_ubuntu.sh.sha256
- name: Upload SHA256 to Release
uses: softprops/action-gh-release@v1
with:
files: setup_harden_debian_ubuntu.sh.sha256
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}