fix(release): repair pipeline defects found in v0.1.0-rc.1 rehearsal
Four defects from the rc.1 dress rehearsal: - Dockerfile pinned golang:1.26-alpine3.23 at a 1.26.3 digest while go.mod requires 1.26.4; golang images set GOTOOLCHAIN=local, so the build hard-fails. Pin 1.26.4-alpine3.23 explicitly. - changelog.disable swallowed --release-notes (the flag is consumed by the changelog pipe), publishing empty release bodies. Re-enable. - Remove the Gitea-side GitHub relay step: redundant with .github/workflows/mirror-release.yml, which runs on GitHub Actions with the built-in token and copies the canonical Gitea assets. - mirror-release.yml: jq '.body // empty' treats "" as truthy so the notes fallback never fired; use select(). Mark rc tags --prerelease.
This commit was merged in pull request #125.
This commit is contained in:
@@ -38,7 +38,9 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "$RESPONSE" | jq -r '.body // empty' > /tmp/release-notes.md
|
||||
# select() so an empty-string body produces an empty file — `// empty`
|
||||
# treats "" as truthy and wrote a blank line, defeating this fallback.
|
||||
echo "$RESPONSE" | jq -r '.body | select(. != null and . != "")' > /tmp/release-notes.md
|
||||
|
||||
if [ ! -s /tmp/release-notes.md ]; then
|
||||
echo "Release ${TAG} from [Gitea](https://gitea.lerkolabs.com/lerkolabs/uptop/releases/tag/${TAG})" > /tmp/release-notes.md
|
||||
@@ -62,8 +64,11 @@ jobs:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
TAG: ${{ github.ref_name }}
|
||||
run: |
|
||||
PRERELEASE=""
|
||||
case "$TAG" in *-*) PRERELEASE="--prerelease" ;; esac
|
||||
gh release create "$TAG" \
|
||||
--repo "$GITHUB_REPOSITORY" \
|
||||
--title "$TAG" \
|
||||
--notes-file /tmp/release-notes.md \
|
||||
$PRERELEASE \
|
||||
/tmp/assets/*
|
||||
|
||||
Reference in New Issue
Block a user