From 85792c1390164221bfe10fe72a23d865928ab966 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Martineau Date: Sun, 13 Sep 2026 18:08:03 -0400 Subject: [PATCH] A release puts its version on meshterm.net github-release.yml gains a website job: once the release is published it rebuilds the meshterm.net site from the tagged tree and pushes it back with a deploy key scoped to that one repository. The release skill says what to do when only that job fails. Co-Authored-By: Claude Opus 5 --- .claude/skills/release/SKILL.md | 6 ++- .github/workflows/github-release.yml | 57 ++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.md index f583bfa..d235d64 100644 --- a/.claude/skills/release/SKILL.md +++ b/.claude/skills/release/SKILL.md @@ -139,7 +139,11 @@ gh run watch --exit-status gh release view vX.Y.Z ``` -Five platform builds plus the release job, so it takes a few minutes. **Check the notes +Five platform builds, the release job, and `website` — which rebuilds meshterm.net from the +tag so the site shows the new version — so it takes a few minutes. If only `website` fails, +the release itself is fine (it runs after publishing); the usual cause is the +`SITE_DEPLOY_KEY` secret, and once that is fixed `gh run rerun --failed` finishes +it. **Check the notes actually came out of the changelog** — a green run is not proof, because the fallback is a successful step: diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index 77435c7..01e04a0 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -11,6 +11,11 @@ # # The binaries are built by `installers.yml`, called rather than copied, so the files # people download are made exactly the way the ones CI checks on every push are. +# +# Once the release exists, `website` puts it on meshterm.net: it rebuilds that site from +# the tagged tree — the landing and About pages carry the version — and pushes the result +# to jpmartineau/meshterm.net, which GitHub Pages serves. It writes with a deploy key +# scoped to that one repository (secret SITE_DEPLOY_KEY); that repo's README makes one. name: GitHub release on: @@ -106,3 +111,55 @@ jobs: --verify-tag \ $PRERELEASE echo "https://github.com/${{ github.repository }}/releases/tag/$TAG" + + website: + name: put the version on meshterm.net + needs: publish + # A pre-release stays out of "Latest", so it stays off the landing page too. + if: ${{ !inputs.prerelease }} + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Check for the deploy key + env: + SITE_DEPLOY_KEY: ${{ secrets.SITE_DEPLOY_KEY }} + run: | + if [ -z "$SITE_DEPLOY_KEY" ]; then + echo "::error::SITE_DEPLOY_KEY is not set; the meshterm.net README says how to make it." + exit 1 + fi + + - uses: actions/checkout@v4 + with: + ref: ${{ inputs.tag || github.ref }} + path: meshterm + + - uses: actions/checkout@v4 + with: + repository: jpmartineau/meshterm.net + ssh-key: ${{ secrets.SITE_DEPLOY_KEY }} + path: site + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Rebuild the site from this release + run: | + python -m pip install --quiet -r site/requirements.txt + python site/build.py --meshterm meshterm + + - name: Publish it + working-directory: site + env: + TAG: ${{ inputs.tag || github.ref_name }} + run: | + git add -A + if git diff --cached --quiet; then + echo "meshterm.net already shows ${TAG#v}." + exit 0 + fi + git config user.name "github-actions[bot]" + git config user.email "41898341+github-actions[bot]@users.noreply.github.com" + git commit -m "MeshTerm ${TAG#v}" + git push