From 6216cb19c736476139ecc949befd81af2e89c760 Mon Sep 17 00:00:00 2001 From: Kyler Ramsey Date: Wed, 23 Sep 2026 22:00:39 -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 | 5 +++++ README.md | 6 +++--- 3 files changed, 37 insertions(+), 3 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..4642c99 --- /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/MixedStorage/ + install-page: 'install.html' + asset-pattern: '^MixedStorage-v[\d.]+\.zip$' + test-command: 'node tests/test-site.mjs' + dry-run: ${{ github.event_name == 'workflow_dispatch' && inputs.dry-run }} diff --git a/CLAUDE.md b/CLAUDE.md index 2a40e21..c8d4ccd 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -26,6 +26,11 @@ through a PR → merge. `404.html`, plus `robots.txt`, `sitemap.xml`, `.nojekyll`. Live at https://timbermods.github.io/MixedStorage/. - **Published:** GitHub Pages serves `main:/docs`, like every other timbermods site, so merging to main publishes; a build takes about a minute. (The old `gh-pages` branch and `deploy-site.ps1` are retired.) +- **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 Apothecary Drawer Cabinet". The site is one walnut cabinet on a painted wall: every drawer is a good, and its height is that good's share, with brass label holders, kraft cards and brass cup pulls. The look is fixed: updates extend it and never restyle it. diff --git a/README.md b/README.md index fdf0250..c24fc14 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ Divide a building's capacity by percentage. For example, a 1,200-capacity warehouse can reserve **50% for carrots (600)** and **50% for gears (600)**. Percentages reserve space; they do not create goods or instantly fill the building. -**[Download MixedStorage v1.2.0](https://github.com/timbermods/MixedStorage/releases/download/v1.2.0/MixedStorage-v1.2.0.zip)** · [Release notes](https://github.com/timbermods/MixedStorage/releases/tag/v1.2.0) · [Report a problem](https://github.com/timbermods/MixedStorage/issues) · [Website](https://timbermods.github.io/MixedStorage/) +**[Download MixedStorage v1.2.0](https://github.com/timbermods/MixedStorage/releases/download/v1.2.0/MixedStorage-v1.2.0.zip)** · [Release notes](https://github.com/timbermods/MixedStorage/releases/tag/v1.2.0) · [Report a problem](https://github.com/timbermods/MixedStorage/issues) · [Website](https://timbermods.github.io/MixedStorage/) -> **v1.2.0** is the current release, built for Timberborn **1.1.2.4**. One download covers single-player and BeaverBuddies multiplayer. +> **v1.2.0** is the current release, built for Timberborn **1.1.2.4**. One download covers single-player and BeaverBuddies multiplayer. image @@ -22,7 +22,7 @@ Divide a building's capacity by percentage. For example, a 1,200-capacity wareho ## Install -1. Download **MixedStorage-v1.2.0.zip** above. On the release page, choose that file under **Assets**, not **Source code**. +1. Download **MixedStorage-v1.2.0.zip** above. On the release page, choose that file under **Assets**, not **Source code**. 2. Close Timberborn. Extract the ZIP's **MixedStorage** folder into your Timberborn **Mods** folder—normally `Documents\Timberborn\Mods` on Windows. 3. Check that `Documents\Timberborn\Mods\MixedStorage\version-1.1\manifest.json` exists. Avoid an extra nested MixedStorage folder. 4. Install **Harmony** 2.4.1 or newer from the [Steam Workshop](https://steamcommunity.com/sharedfiles/filedetails/?id=3284904751) if you don't have it. Enable **Harmony** and **MixedStorage** in the game's mod manager, then restart when prompted.