diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 45a6482..8ce2e79 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,7 @@ jobs: run: | v=$(python -c "import tomllib;print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])") test "v$v" = "${GITHUB_REF_NAME}" || { echo "tag ${GITHUB_REF_NAME} != version v$v"; exit 1; } + grep -qF "## [$v] - " CHANGELOG.md || { echo "CHANGELOG.md has no section for $v"; exit 1; } # pinned: this job's output is what gets published - run: pip install build==1.6.1 pytest==9.1.1 pyyaml==6.0.3 && python -m pytest -q - run: python -m build @@ -66,5 +67,6 @@ jobs: GH_TOKEN: ${{ github.token }} run: | v="${GITHUB_REF_NAME#v}" - awk -v v="$v" '$0 ~ "^## \\[" v "\\]" {on=1; next} on && /^## \[/ {exit} on {print}' CHANGELOG.md > notes.md + # a plain prefix match: gawk and mawk read "\\[" inside a dynamic regex differently + awk -v h="## [$v]" 'index($0, h) == 1 {on=1; next} on && index($0, "## [") == 1 {exit} on {print}' CHANGELOG.md > notes.md gh release create "$GITHUB_REF_NAME" dist/* --title "Wirehouse $v" --notes-file notes.md diff --git a/CHANGELOG.md b/CHANGELOG.md index ddc527c..e7a3683 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ All notable changes to Wirehouse are listed here. The format follows ## [Unreleased] +## [0.3.1] - 2026-10-21 + ### Added - **A landing page for the project site** (2026-10-19) - Summary: `docs/index.html` is the home page of the GitHub Pages site: the pitch, the demo animation, @@ -45,6 +47,12 @@ All notable changes to Wirehouse are listed here. The format follows any of the Pass 1 and Pass 2 fixes, and its enrichment could not be reproduced. ### Fixed +- **GitHub releases get their notes on any awk** (2026-10-21) + - Summary: The release workflow finds the version's CHANGELOG.md section with a plain text match + instead of a regular expression, and the build job stops before publishing when that section is + missing. + - Why: gawk 5.4 reads the old pattern differently from mawk and found nothing, so a runner with gawk + (such as the coming Ubuntu 26 image) would have created the release with empty notes. - **The unclosed-ORM-call test no longer depends on machine speed** (2026-10-20) - Summary: `test_unclosed_orm_calls_parse_quickly` checks that every decorator call is read at most `MAX_CALL_ARGS` characters ahead instead of timing the parse against a 5-second limit. @@ -585,7 +593,8 @@ The first public release. - First working version: scan, agent enrichment, the 3D warehouse and the floor plan. -[Unreleased]: https://github.com/creyes-git/wirehouse/compare/v0.3.0...HEAD +[Unreleased]: https://github.com/creyes-git/wirehouse/compare/v0.3.1...HEAD +[0.3.1]: https://github.com/creyes-git/wirehouse/releases/tag/v0.3.1 [0.3.0]: https://github.com/creyes-git/wirehouse/compare/v0.2.0...v0.3.0 [0.2.0]: https://github.com/creyes-git/wirehouse/compare/v0.1.0...v0.2.0 [0.1.0]: https://github.com/creyes-git/wirehouse/releases/tag/v0.1.0 diff --git a/pyproject.toml b/pyproject.toml index fd6d36b..055eb9b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "wirehouse" -version = "0.3.0" +version = "0.3.1" description = "Walk through your codebase's architecture as a 3D warehouse: trace requests, take guided tours and share it all as one offline HTML file. Built for your agents." readme = "README.md" requires-python = ">=3.11" diff --git a/wirehouse/__init__.py b/wirehouse/__init__.py index 93a4399..3aa4644 100644 --- a/wirehouse/__init__.py +++ b/wirehouse/__init__.py @@ -1,3 +1,3 @@ """Wirehouse: walk through your project's architecture as a 3D warehouse.""" -__version__ = "0.3.0" +__version__ = "0.3.1"