From 2cb9c7c8f360587efebd3e6347bfa55ac324195f Mon Sep 17 00:00:00 2001 From: Travis Dent Date: Tue, 18 Feb 2025 09:29:01 -0800 Subject: [PATCH] GitHub action for calculating checksums on release. --- .github/workflows/release-checksum.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/release-checksum.yml diff --git a/.github/workflows/release-checksum.yml b/.github/workflows/release-checksum.yml new file mode 100644 index 00000000..9fe530a8 --- /dev/null +++ b/.github/workflows/release-checksum.yml @@ -0,0 +1,23 @@ +name: Create checksum.txt for releases + +on: + release: + types: [created] + workflow_dispatch: + +jobs: + test: + runs-on: macos-latest + + steps: + - name: Run checksum action + uses: thewh1teagle/checksum@v1 + with: + patterns: | + *.zip + *.tar.gz + algorithm: sha256 + dry-run: checksum.txt + env: + # You must enable write permission in github.com/user/repo/settings/actions -> Workflow permissions -> Read and write permissions + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}