Fix release changelog range and attach RPM + checksums #18
Reference in New Issue
Block a user
Delete Branch "benvin/release-assets-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The
v0.5.4release step failed withError: open node-lookup-linux-amd64: no such file or directory, so the Gitea releases page carries none of the binaries. Root cause: at v0.5.4 the build loop's shell variables (${name},${pkg},${osarch%/*}) were unescaped, so Woodpecker substituted them to empty at YAML-parse time and no cross-compiled binaries were produced. The same blanking left the release--noteempty (git log "..v0.5.4").The build-loop escaping was already fixed in #16. This PR fixes the two remaining release-step defects and enriches the release assets.
Changes
git describe --tags --abbrev=0 HEAD^changelog anchor with a previous-tag scan that skips tags on the current commit and picks the newest semver ancestor tag. Several tags point at the same commit (v0.5.3 and v0.5.4 both onf296056), sodescribe HEAD^jumps the range back to v0.5.1; the scan correctly selects v0.5.2.dist/) and a generatedsha256sums.txtalongside the 12 cross-compiled binaries.Keeps
serviceAccountName: defaultand the k8s resource requests/limits on the release step unchanged.Validation
check-yaml/trailing-whitespacepre-commit hooks pass.$$→$) from the worktree:PREV_TAG=v0.5.2, non-empty notes, and all 13 assets (12 binaries + RPM) plussha256sums.txtresolve on disk.