release: prepare ChessPenguin 2.2.0 and update website

This commit is contained in:
vrubelroman 2026-11-06 00:26:37 +03:00
parent 860e84d0d9
commit f425e3abc2
19 changed files with 121 additions and 31 deletions

View file

@ -113,3 +113,25 @@ its dev hooks (`docs/dev/desktop.md`) into `shots/raw/` (not committed), then
`python3 -I shots/derive.py` makes the WebP/JPEG/PNG sizes and `static/og-image.png`. The
games are public domain with our own comments; the large database appears only as a table
of game data under a neutral name, never with its annotations.
## Production deployment
Run from the repository root after committing `website/`:
```sh
cargo test --manifest-path website/server/Cargo.toml --locked
website/deploy/deploy.sh
website/deploy/deploy.sh status
```
The script builds an image tagged with the current commit, sends it over SSH to
`docker-prodVM:/home/vrubel/services/ChessPenguinSite`, restarts the container and checks
`http://127.0.0.1:8140/healthz` on that host. It preserves the remote `.env` and `data/`.
Use `website/deploy/deploy.sh rollback` to restore the previously deployed image.
For 2.2.0, publish the GitHub release and verify its expected downloadable assets before
deploying the translated release highlights. The site's version, publication date, asset
names, sizes and download destinations come from GitHub, not these highlights. The
10-minute release cache refreshes automatically; restarting the site also clears it.
After deployment, check `/healthz`, `/api/release`, `/`, and `/ru/` on the public site.
Do not probe `/download/*` merely to check availability: those routes count downloads.