-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.1 KB
/
hash-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Generate Hashes for release assets
on:
release:
types: [published]
jobs:
hash:
runs-on: ubuntu-latest
steps:
- uses: MCJack123/ghaction-generate-release-hashes@v4
with:
get-assets: true
hash-type: sha256
file-name: hashes-sha256.txt
- uses: MCJack123/ghaction-generate-release-hashes@v4
with:
get-assets: true
hash-type: sha512
file-name: hashes-sha512.txt
- uses: MCJack123/ghaction-generate-release-hashes@v4
with:
get-assets: true
hash-type: md5
file-name: hashes-md5.txt
- uses: actions/upload-artifact@v3
with:
name: Asset Hashes
path: hashes*.txt
- name: Upload hashes to release
# I don't exactly trust this random action I found on the internet, but it seems to work.
# However, along as we use this specific commit, it should be fine.
uses: AButler/upload-release-assets@b2b56d8ca22109e8606ac54603ab60dfb32058a7
with:
repo-token: ${{ secrets.GH_TOKEN }}
files: 'hashes*.txt'