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 }}