Skip to content

Commit 3c91f0b

Browse files
authored
Merge pull request #12 from PostHog/feat/release-checksums
Add SHA256 checksums to releases
2 parents d53d363 + 2946734 commit 3c91f0b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ jobs:
6161
id: sha
6262
run: echo "short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
6363

64+
- name: Generate checksums
65+
run: |
66+
cd artifacts
67+
sha256sum duckgres-linux-amd64/duckgres-linux-amd64 duckgres-linux-arm64/duckgres-linux-arm64 | \
68+
sed 's|duckgres-linux-\([^/]*\)/||g' > checksums.txt
69+
cat checksums.txt
70+
6471
- name: Create Release
6572
uses: softprops/action-gh-release@v2
6673
with:
@@ -71,6 +78,7 @@ jobs:
7178
files: |
7279
artifacts/duckgres-linux-amd64/duckgres-linux-amd64
7380
artifacts/duckgres-linux-arm64/duckgres-linux-arm64
81+
artifacts/checksums.txt
7482
7583
- name: Delete existing latest release
7684
run: gh release delete latest --yes || true
@@ -94,7 +102,9 @@ jobs:
94102
```
95103
https://github.com/PostHog/duckgres/releases/latest/download/duckgres-linux-amd64
96104
https://github.com/PostHog/duckgres/releases/latest/download/duckgres-linux-arm64
105+
https://github.com/PostHog/duckgres/releases/latest/download/checksums.txt
97106
```
98107
files: |
99108
artifacts/duckgres-linux-amd64/duckgres-linux-amd64
100109
artifacts/duckgres-linux-arm64/duckgres-linux-arm64
110+
artifacts/checksums.txt

0 commit comments

Comments
 (0)