mirror of
https://github.com/theupriser/steamify-cachyos-live-iso.git
synced 2026-10-02 15:10:26 +02:00
feat(ci): release notes: clearer wording, workflow (ci) and docs commits left out of the ISO's change list, checksum section
Sync git.upriser.nl mirror / sync (push) Skipped
Sync git.upriser.nl mirror / sync (push) Skipped
This commit is contained in:
1 parent
acde716b86
commit
71d429915e
2 files changed
+16
-9
No files matched your search
@@ -76,25 +76,31 @@ jobs:
|
|||||||
awk -v v="$steamify" 'index($0, "## " v " ") == 1 {f = 1; next} f && /^## / {exit} f')"
|
awk -v v="$steamify" 'index($0, "## " v " ") == 1 {f = 1; next} f && /^## / {exit} f')"
|
||||||
[ "$kind" = release ] && want_pre=false || want_pre=true
|
[ "$kind" = release ] && want_pre=false || want_pre=true
|
||||||
prev="$(gh release list -L 50 --json tagName,isPrerelease,createdAt -q "[.[] | select(.isPrerelease == $want_pre and .tagName != \"$tag\")] | sort_by(.createdAt) | reverse | .[0].tagName // empty")"
|
prev="$(gh release list -L 50 --json tagName,isPrerelease,createdAt -q "[.[] | select(.isPrerelease == $want_pre and .tagName != \"$tag\")] | sort_by(.createdAt) | reverse | .[0].tagName // empty")"
|
||||||
|
# Commits that change the ISO itself: not the workflow ones (type or scope ci, e.g. ci: / fix(ci):) and not docs:.
|
||||||
if [ -n "$prev" ] && git rev-parse -q --verify "refs/tags/$prev" > /dev/null; then
|
if [ -n "$prev" ] && git rev-parse -q --verify "refs/tags/$prev" > /dev/null; then
|
||||||
changes="$(git log --no-merges --format='- %s' "$prev..HEAD" | head -n 40)"; since="since $prev"
|
range="$prev..HEAD"; limit=40; since="Since \`$prev\`:"
|
||||||
else
|
else
|
||||||
changes="$(git log --no-merges --format='- %s' -n 15)"; since="(the latest commits: no earlier $kind release)"
|
range="HEAD"; limit=12; since="The latest commits (there is no earlier $kind release to compare with):"
|
||||||
fi
|
fi
|
||||||
[ -n "$changes" ] || changes="- no changes since $prev"
|
changes="$(git log --no-merges --format='%s' "$range" | grep -Ev '^(ci|docs)(\(.*\))?:|^[a-z]+\(ci\):' | sed 's/^/- /' | head -n "$limit" || true)"
|
||||||
|
[ -n "$changes" ] || changes="- No changes to the ISO itself."
|
||||||
notes="
|
notes="
|
||||||
|
|
||||||
CachyOS $base with Steamify $steamify${sref:+ (branch $sref)} built in: install CachyOS and turn the PC into a Steam Machine in one go. Built from \`$(git rev-parse --short HEAD)\` (${{ github.ref_name }}) and published on the mirror (GitHub releases take at most 2 GB per file), about 20 minutes after this release:
|
**CachyOS $base with Steamify $steamify${sref:+ (branch $sref)} built in.** Install CachyOS and turn the PC into a Steam Machine in one go.
|
||||||
|
|
||||||
|
The ISO is built from \`$(git rev-parse --short HEAD)\` (${{ github.ref_name }}). It is about 3 GB, more than a GitHub release can hold (2 GB per file), so it is published on the mirror about 20 minutes after this release is created:
|
||||||
|
|
||||||
**Download: [$file]($dl/$file)** ([SHA-256]($dl/$file.sha256), [release page]($GITEA_URL/$GITEA_REPO/releases/tag/$tag))
|
**Download: [$file]($dl/$file)** ([SHA-256]($dl/$file.sha256), [release page]($GITEA_URL/$GITEA_REPO/releases/tag/$tag))
|
||||||
|
|
||||||
### Steamify $steamify
|
### Steamify $steamify
|
||||||
${steamify_notes:-No changelog section for this version.}
|
${steamify_notes:-There is no changelog section for this version.}
|
||||||
|
|
||||||
### Changes in this ISO $since
|
### Changes in this ISO
|
||||||
|
$since
|
||||||
$changes
|
$changes
|
||||||
|
|
||||||
Sources: [Steamify](https://github.com/theupriser/steamify-cachyos/tree/${sref:-v$steamify}), this repository at this tag, and the packages' sources at [CachyOS](https://github.com/CachyOS) and [Arch Linux](https://archlinux.org/packages/)."
|
### Sources
|
||||||
|
[Steamify](https://github.com/theupriser/steamify-cachyos/tree/${sref:-v$steamify}), this repository at this tag, and the packages' sources at [CachyOS](https://github.com/CachyOS) and [Arch Linux](https://archlinux.org/packages/)."
|
||||||
# One ISO per day and kind: the newest build of a day replaces the earlier one (space), here and on the mirror.
|
# One ISO per day and kind: the newest build of a day replaces the earlier one (space), here and on the mirror.
|
||||||
if git ls-remote --exit-code --tags origin "refs/tags/$tag" > /dev/null 2>&1 || gh release view "$tag" > /dev/null 2>&1; then
|
if git ls-remote --exit-code --tags origin "refs/tags/$tag" > /dev/null 2>&1 || gh release view "$tag" > /dev/null 2>&1; then
|
||||||
echo "$tag exists: replacing it"
|
echo "$tag exists: replacing it"
|
||||||
|
|||||||
@@ -178,11 +178,12 @@ jobs:
|
|||||||
if curl -fsS "https://api.github.com/repos/theupriser/steamify-cachyos-live-iso/releases/tags/$tag" -o /tmp/ghrel.json; then
|
if curl -fsS "https://api.github.com/repos/theupriser/steamify-cachyos-live-iso/releases/tags/$tag" -o /tmp/ghrel.json; then
|
||||||
jq -r '.body // ""' /tmp/ghrel.json | sed '/ISO build\]/d' > release-notes.md
|
jq -r '.body // ""' /tmp/ghrel.json | sed '/ISO build\]/d' > release-notes.md
|
||||||
else
|
else
|
||||||
echo "Built from \`$(git rev-parse --short HEAD)\` ($tag) with Steamify $STEAMIFY_VERSION." > release-notes.md
|
echo "Built from \`$(git rev-parse --short HEAD)\` ($tag) with Steamify $STEAMIFY_VERSION." > release-notes.md # fallback when GitHub cannot be reached
|
||||||
fi
|
fi
|
||||||
{
|
{
|
||||||
echo
|
echo
|
||||||
echo "SHA-256: \`$(cut -d' ' -f1 "$iso.sha256")\`, label \`STEAMIFY_${STEAMIFY_VERSION//./_}_$b\`"
|
echo "### Checksum"
|
||||||
|
echo "SHA-256 of the ISO: \`$(cut -d' ' -f1 "$iso.sha256")\` (label \`STEAMIFY_${STEAMIFY_VERSION//./_}_$b\`)."
|
||||||
} >> release-notes.md
|
} >> release-notes.md
|
||||||
cat release-notes.md
|
cat release-notes.md
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user