Skip to content

Commit 3e62601

Browse files
committed
GitHub release builds: build log in files, add dates
This change re-adds build logs to releases but uses separate files instead of adding the log to Release.md. This addresses a corner case where Release.md grew too large to be used as release text (see #138 (comment)). Also, the PR adds build timestamps to release texts as well as removes the contents of SHA256SUMS from the SHA256SUMS metadata Release.md to avoid potential issues in the future as our release count grows. The SHA256SUMS file is part of that release, no need to repeat it in Release.md Signed-off-by: Thilo Fromm <[email protected]>
1 parent a6fb21e commit 3e62601

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ jobs:
9191
bakery/SHA256SUMS
9292
bakery/*.raw
9393
bakery/*.conf
94+
bakery/*-build.log
9495
9596
update-extension-metadata:
9697
needs: [ list-builds, create-release ]

release.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ function out() {
2424
out ""
2525
out "New ${extension} extension release ${version}"
2626
out ""
27+
out "Built $(date --rfc-3339 seconds)"
2728

2829
for arch in x86-64 arm64; do
2930
target="${extension}-${version}-${arch}"
3031
out "## \`${target}.raw\`"
31-
./bakery.sh create "${extension}" "${version}" --arch "${arch}" --sysupdate true --output-file "${target}"
32+
./bakery.sh create "${extension}" "${version}" --arch "${arch}" --sysupdate true --output-file "${target}" 2>&1 \
33+
| tee "${extension}-${version}-${arch}-build.log"
3234
cat SHA256SUMS."${extension}" >> SHA256SUMS
3335
done
3436

release_meta.sh

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ function fetch_extension_metadata() {
6565
if [[ -n $extension ]] ; then
6666

6767
out "# Extension ${extension} metadata release."
68+
out ""
69+
out "Updated $(date --rfc-3339 seconds)"
6870

6971
fetch_extension_metadata "$extension"
7072
if [[ ! -f SHA256SUMS ]] ; then
@@ -81,6 +83,7 @@ else
8183

8284
out "# Global SHA256SUMS metadata release."
8385
out ""
86+
out "Updated $(date --rfc-3339 seconds)"
8487

8588
for extension in $(./bakery.sh list --plain true); do
8689
echo
@@ -103,14 +106,5 @@ else
103106
fi
104107
# --
105108

106-
if [[ -f SHA256SUMS ]] ; then
107-
out ""
108-
out "# SHA256SUMS:"
109-
out '```'
110-
cat SHA256SUMS | tee -a Release.md
111-
out '```'
112-
fi
113-
114-
115109
git tag -f "${tag}" --force
116110
git push origin "${tag}" --force

0 commit comments

Comments
 (0)