Skip to content

Commit f6d91d4

Browse files
committed
Release: attach macOS raw binary and publish artifact explainer notes
1 parent 0007f5d commit f6d91d4

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,15 @@ jobs:
298298
fi
299299
300300
# Checksums
301-
(cd "$DIST" && shasum -a 256 "fipspad_darwin_universal.pkg" > "SHA256SUMS_darwin_universal.txt")
301+
cp "$BINARY" "$DIST/fips-pad"
302+
(cd "$DIST" && shasum -a 256 "fips-pad" "fipspad_darwin_universal.pkg" > "SHA256SUMS_darwin_universal.txt")
302303
303304
- name: Upload artifacts
304305
uses: actions/upload-artifact@v4
305306
with:
306307
name: macos-universal
307308
path: |
309+
dist/fips-pad
308310
dist/fipspad_darwin_universal.pkg
309311
dist/SHA256SUMS_darwin_universal.txt
310312
@@ -444,9 +446,32 @@ jobs:
444446
gh release upload "$TAG" SHA256SUMS.txt \
445447
--repo "${{ github.repository }}" --clobber
446448
449+
cat > RELEASE_NOTES.md <<'EOF'
450+
Release ${TAG}
451+
452+
Attached artifacts:
453+
454+
- `fips-pad` — Raw macOS universal CLI binary (unsigned installer wrapper not required).
455+
- `fipspad_darwin_universal.pkg` — macOS installer package (signed/notarized when credentials are configured).
456+
- `fipspad_linux_amd64` — Linux amd64 binary.
457+
- `fipspad_windows_amd64.exe` — Windows amd64 executable (signed when credentials are configured).
458+
- `SHA256SUMS.txt` — Combined checksums for all release artifacts.
459+
- `SHA256SUMS_darwin_universal.txt` — Checksums for macOS artifacts.
460+
- `SHA256SUMS_linux_amd64.txt` — Checksum for Linux artifact.
461+
- `SHA256SUMS_windows_amd64.txt` — Checksum for Windows artifact.
462+
463+
Verify downloads:
464+
465+
```bash
466+
sha256sum -c SHA256SUMS.txt
467+
```
468+
EOF
469+
sed -i "s/\${TAG}/${TAG}/g" RELEASE_NOTES.md
470+
447471
# Publish (remove draft)
448472
gh release edit "$TAG" \
449473
--repo "${{ github.repository }}" \
474+
--notes-file RELEASE_NOTES.md \
450475
--draft=false
451476
452477
echo "Release $TAG published!"

0 commit comments

Comments
 (0)