Skip to content

Commit 2cb9c7c

Browse files
committed
GitHub action for calculating checksums on release.
1 parent 18b941b commit 2cb9c7c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Create checksum.txt for releases
2+
3+
on:
4+
release:
5+
types: [created]
6+
workflow_dispatch:
7+
8+
jobs:
9+
test:
10+
runs-on: macos-latest
11+
12+
steps:
13+
- name: Run checksum action
14+
uses: thewh1teagle/checksum@v1
15+
with:
16+
patterns: |
17+
*.zip
18+
*.tar.gz
19+
algorithm: sha256
20+
dry-run: checksum.txt
21+
env:
22+
# You must enable write permission in github.com/user/repo/settings/actions -> Workflow permissions -> Read and write permissions
23+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)