Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/latest-release.yml
Original file line number Diff line number Diff line change
@@ -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 <!-- latest --> 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 }}
7 changes: 6 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -24,6 +24,11 @@ PR → merge.
`site.js` (theme toggle, chart tooltip, opens the `<details>` 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 `<!-- latest -->` 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.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**. <!-- latest -->

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
Expand Down