Skip to content
This repository was archived by the owner on Sep 17, 2023. It is now read-only.

Commit 0b8d111

Browse files
committed
fix: add checksum to GitHub releases
Issue #102
1 parent 0e49349 commit 0b8d111

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,17 @@ jobs:
140140
cp target/${{ matrix.triple.target }}/release/monorepo builds/typescript-tools-${{ matrix.triple.target }}/
141141
tar -C builds -czvf dist/typescript-tools-${{ matrix.triple.target }}.tar.gz typescript-tools-${{ matrix.triple.target }}
142142
143-
- name: Upload release artifact
143+
- name: Create checksum
144+
run: shasum --algorithm 256 --binary typescript-tools-${{ matrix.triple.target }}.tar.gz > typescript-tools-${{ matrix.triple.target }}-SHASUM256.txt
145+
working-directory: ./dist
146+
147+
- name: Upload release artifacts
144148
uses: actions/upload-artifact@v3
145149
with:
146150
name: typescript-tools-${{ matrix.triple.target }}.tar.gz
147-
path: dist/typescript-tools-${{ matrix.triple.target }}.tar.gz
151+
path: |
152+
dist/typescript-tools-${{ matrix.triple.target }}.tar.gz
153+
dist/typescript-tools-${{ matrix.triple.target }}-SHASUM256.txt
148154
if-no-files-found: error
149155
retention-days: 1
150156

.releaserc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,41 @@
3939
"path": "dist/typescript-tools-x86_64-unknown-linux-musl.tar.gz",
4040
"label": "x86_64-unknown-linux-musl"
4141
},
42+
{
43+
"path": "dist/typescript-tools-x86_64-unknown-linux-musl-SHASUM256.txt",
44+
"label": "x86_64-unknown-linux-musl-SHASUM256"
45+
},
4246
{
4347
"path": "dist/typescript-tools-i686-unknown-linux-musl.tar.gz",
4448
"label": "i686-unknown-linux-musl"
4549
},
50+
{
51+
"path": "dist/typescript-tools-i686-unknown-linux-musl-SHASUM256.txt",
52+
"label": "i686-unknown-linux-musl-SHASUM256"
53+
},
4654
{
4755
"path": "dist/typescript-tools-x86_64-apple-darwin.tar.gz",
4856
"label": "x86_64-apple-darwin"
4957
},
58+
{
59+
"path": "dist/typescript-tools-x86_64-apple-darwin-SHASUM256.txt",
60+
"label": "x86_64-apple-darwin-SHASUM256"
61+
},
5062
{
5163
"path": "dist/typescript-tools-aarch64-unknown-linux-musl.tar.gz",
5264
"label": "aarch64-unknown-linux-musl"
5365
},
66+
{
67+
"path": "dist/typescript-tools-aarch64-unknown-linux-musl-SHASUM256.txt",
68+
"label": "aarch64-unknown-linux-musl-SHASUM256"
69+
},
5470
{
5571
"path": "dist/typescript-tools-aarch64-apple-darwin.tar.gz",
5672
"label": "aarch64-apple-darwin"
73+
},
74+
{
75+
"path": "dist/typescript-tools-aarch64-apple-darwin-SHASUM256.txt",
76+
"label": "aarch64-apple-darwin-SHASUM256"
5777
}
5878
]
5979
}

0 commit comments

Comments
 (0)