Skip to content

Commit f7327fe

Browse files
committed
Add SHA256 checksums to release
Fixes: ryanoasis#1578 Signed-off-by: Fini Jastrow <[email protected]>
1 parent ce9910a commit f7327fe

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

Diff for: .github/workflows/release.yml

+23-3
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@ jobs:
223223
tag_name: "v${{ env.RELEASE_VERSION }}"
224224
files: archives/*
225225

226+
- name: Create checksums from font packages
227+
run: |
228+
cd -- "$GITHUB_WORKSPACE/archives"
229+
sha256sum * > SHA-256-${{ matrix.font }}.txt
230+
226231
- name: Upload patched fonts as artifacts
227232
uses: actions/upload-artifact@v4
228233
with:
@@ -232,6 +237,7 @@ jobs:
232237
path: |
233238
LICENSE
234239
patched-fonts/${{ matrix.font }}
240+
archives/SHA*
235241
236242
release-font-patcher:
237243
name: Archive font patcher and add to release
@@ -268,6 +274,9 @@ jobs:
268274
commit:
269275
name: Commit and push patched fonts to the repo, finalize release
270276
needs: [ setup-fonts-matrix, build, release-font-patcher ]
277+
env:
278+
RELEASE_VERSION: ${{ needs.setup-fonts-matrix.outputs.rel_version }}
279+
RELEASE_CANDIDATE: ${{ needs.setup-fonts-matrix.outputs.rel_candidate }}
271280
runs-on: ubuntu-latest
272281
steps:
273282
- uses: actions/checkout@v4
@@ -284,10 +293,21 @@ jobs:
284293
path: .
285294
merge-multiple: true
286295

296+
- name: Create complete checksums file
297+
run: |
298+
cd -- "$GITHUB_WORKSPACE/archives"
299+
cat SHA-256-* | sort -k 2 > SHA-256.txt
300+
301+
- name: Upload checksums for release
302+
uses: softprops/action-gh-release@v2
303+
if: needs.setup-fonts-matrix.outputs.rel_upload == 'true'
304+
with:
305+
draft: true
306+
prerelease: ${{ env.RELEASE_CANDIDATE != 'false' }}
307+
tag_name: "v${{ env.RELEASE_VERSION }}"
308+
files: archives/SHA-256.txt
309+
287310
- name: Bump version for source files
288-
env:
289-
RELEASE_VERSION: ${{ needs.setup-fonts-matrix.outputs.rel_version }}
290-
RELEASE_CANDIDATE: ${{ needs.setup-fonts-matrix.outputs.rel_candidate }}
291311
run: |
292312
cd -- "$GITHUB_WORKSPACE/bin/scripts"
293313
./version-bump.sh "$RELEASE_VERSION"

0 commit comments

Comments
 (0)