From 1abbd00e988e41cec1720dbabaf1ed05bb2c86d7 Mon Sep 17 00:00:00 2001 From: Kyler Ramsey Date: Wed, 23 Sep 2026 22:00:04 -0700 Subject: [PATCH] Latest-release workflow: notes footer, site version text and marked README lines update on each Latest release Calls the shared timbermods workflow (timbermods/.github). Pre-releases change nothing. CLAUDE.md notes it. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/latest-release.yml | 29 ++++++++++++++++++++++++++++ CLAUDE.md | 7 ++++++- README.md | 2 +- 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/latest-release.yml diff --git a/.github/workflows/latest-release.yml b/.github/workflows/latest-release.yml new file mode 100644 index 0000000..5128fd0 --- /dev/null +++ b/.github/workflows/latest-release.yml @@ -0,0 +1,29 @@ +# When a release becomes GitHub's Latest release: the release-notes footer, the site's version text and the README +# lines marked are updated, checked and committed. Pre-releases change nothing. +# The shared workflow and its script live in timbermods/.github. Run it by hand for a dry run (changes nothing). +name: Latest release + +on: + release: + types: [released] + workflow_dispatch: + inputs: + dry-run: + description: Show what would change, change nothing + type: boolean + default: true + +permissions: + contents: write + issues: write + pages: write + +jobs: + update: + uses: timbermods/.github/.github/workflows/latest-release.yml@main + with: + site-url: https://timbermods.github.io/OptimizedLocalHousing/ + install-page: 'install.html' + asset-pattern: '^OptimizedLocalHousing-v[\d.]+\.zip$' + test-command: '' + dry-run: ${{ github.event_name == 'workflow_dispatch' && inputs.dry-run }} diff --git a/CLAUDE.md b/CLAUDE.md index 8e7dcc5..b53ac89 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -13,7 +13,7 @@ PR → merge. ## Standing rules - Never launch or drive Timberborn, and never touch installed mods or saves. The maintainer (Kyler) playtests himself. -- Commit on a branch and open a PR. Merge only when Kyler says so in the chat. +- Commit on a branch and open a PR. Kyler has said to merge PRs automatically: merge, then check the page live. - Assume fresh games: no old-save compatibility notes on the site. Don't mention Incremental Housing (removed on purpose). - Compare fairly with Bobingabout's Housing Optimize and Commute Balancer, by what their Workshop pages say. Never "the best housing mod". The 25.6 vs 24.1 figure is a model with straight-line distances, not a benchmark. @@ -24,6 +24,11 @@ PR → merge. `site.js` (theme toggle, chart tooltip, opens the `
` a `#hash` names), `seating.js` (the hero demo), `release.js`, `favicon.svg`, `.nojekyll`, `fonts/`, `textures/`. Live at https://timbermods.github.io/OptimizedLocalHousing/. - **Published:** GitHub Pages serves `main:/docs` (legacy build), so merging to main publishes; a build takes about a minute. +- **Latest releases update themselves:** when a release becomes GitHub's Latest, `.github/workflows/latest-release.yml` + (the shared timbermods workflow) appends the standard footer to its notes, sets the site's + `data-release="version|tag|asset-name"` fallback text and the README lines ending in `` to the new + version, runs the site checks and commits to main. Pre-releases change nothing. Descriptions, status lists and FAQs + stay manual (the checklist below). Dry run: Actions → Latest release → Run workflow. - **Look:** "The Seating Chart". A host's planner's board: tented place cards and card stock pinned to linen, the hall drafted in blue for the plan as arranged and madder for the plan as it was. The look is fixed: updates extend it and never restyle it. diff --git a/README.md b/README.md index fb0ceb0..e50579f 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ **Website:** https://timbermods.github.io/OptimizedLocalHousing/ (install guide, troubleshooting, FAQ) A Timberborn 1.1 mod (built against **1.1.2.4**) that moves adult beavers into the homes that give the -**shortest total commute** between where they live and where they work. Version **1.1.1**. +**shortest total commute** between where they live and where they work. Version **1.1.1**. Everyone can't live in the house nearest their workplace, because beds are limited. The best you can do is minimize the total travel across the whole colony, and that is exactly what this mod solves, once a day, with