Skip to content

Commit c39e500

Browse files
committed
add release manifest
1 parent 8959c16 commit c39e500

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/build-worker-bundles.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,22 @@ jobs:
3333
with:
3434
skip-decompress: true
3535
merge-multiple: true
36+
37+
- name: Create manifest.json
38+
run: |
39+
set -euo pipefail
40+
manifest="{}"
41+
for f in worker*.tar.xz; do
42+
sum=$(sha256sum "$f" | awk '{print $1}')
43+
manifest=$(echo "$manifest" | jq ".files.[\"$f\"].sha256 = \"$sum\"")
44+
done
45+
echo "$manifest" > manifest.json
46+
3647
- uses: softprops/action-gh-release@v3
3748
with:
3849
tag_name: dev+${{ github.sha }}
3950
target_commitish: ${{ github.sha }}
4051
prerelease: true
4152
files: |
4253
worker-*.tar.xz
54+
manifest.json

0 commit comments

Comments
 (0)