ci(release): valid bug form, YAML check, embed the releases repository, keep public content on the newest release
- Quote the bug form's Version description (it did not parse, so GitHub offered no bug form at all). - .github/scripts/check-yaml.rb parses workflows, the compose file and the public issue forms (and checks the form shape); CI runs it on Linux and the release job runs it before publishing the forms. - Builds and publishes pass TitanoReleasesRepo=$RELEASES_REPO, so binaries read the repository they are published to. - Image links in the public repository point to the image the docker job pushed. - The public repository content follows the newest stable release; older tags and pre-releases only get their release, and an older stable tag is never marked Latest. - Screenshot captures time out after 10 minutes; the perf summary reports missing timings. - Public README names the in-app "Suggest a fix" link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
7 files changed
+99
-17
No files matched your search
@@ -58,7 +58,7 @@ The server reads `/data/server.json` (`TITANO_DATA_PATH`) and `TITANO_*` environ
|
||||
|
||||
| Workflow | When | What |
|
||||
|---|---|---|
|
||||
| `.github/workflows/ci.yml` | push to `main`, pull requests | Windows + Linux build (warnings are errors), all tests, package guard, i18n check, XAML lint, format check, CC0 fixtures (a warning per missing sample), screenshots (`--capture`, also pushed to the `ci-screenshots` branch for same-repository PRs), Windows program artifacts, PostgreSQL 16/17 integration, Docker image smoke test |
|
||||
| `.github/workflows/ci.yml` | push to `main`, pull requests | Windows + Linux build (warnings are errors), all tests, package guard, i18n check, XAML lint, format check, YAML check of workflows and public issue forms, CC0 fixtures (a warning per missing sample), screenshots (`--capture`, also pushed to the `ci-screenshots` branch for same-repository PRs), Windows program artifacts, PostgreSQL 16/17 integration, Docker image smoke test |
|
||||
| `.github/workflows/docker.yml` | nightly | `ghcr.io/<owner>/titano-server:nightly` (multi-arch) |
|
||||
| `.github/workflows/perf.yml` | weekly, manual | Performance gates on SQLite and PostgreSQL 17; timings in the job summary |
|
||||
| `.github/workflows/release.yml` | tag `v*`, manual re-publish | The release (below) |
|
||||
@@ -75,7 +75,10 @@ The server reads `/data/server.json` (`TITANO_DATA_PATH`) and `TITANO_*` environ
|
||||
zips `Titano-Server-win-x64-<v>.zip` and `Titano-win-x64-portable-<v>.zip`;
|
||||
- writes release notes from the Conventional Commits since the previous tag (`Titano.Tools changelog`);
|
||||
- builds and pushes `ghcr.io/<owner>/titano-server:<v>` (and `:latest` for stable tags) for amd64 and arm64;
|
||||
- computes `SHA256SUMS`, updates the public releases repository and creates (or updates) the GitHub release there.
|
||||
- computes `SHA256SUMS`, checks the public issue forms, updates the public releases repository and creates (or
|
||||
updates) the GitHub release there. The repository content (README, EULA, `i18n/`, `SHA256SUMS`) follows the
|
||||
newest stable release: a pre-release, or an older tag published again, only gets its release and never becomes
|
||||
*Latest*. Until the first stable release exists, every tag updates the content.
|
||||
4. To publish an existing tag again (for example after adding a secret), run *Release* manually with the tag.
|
||||
|
||||
### Secrets and variables
|
||||
@@ -83,7 +86,7 @@ The server reads `/data/server.json` (`TITANO_DATA_PATH`) and `TITANO_*` environ
|
||||
| Name | Kind | Purpose |
|
||||
|---|---|---|
|
||||
| `RELEASES_TOKEN` | secret | Fine-grained PAT with *Contents: read and write* on the public releases repository. Without it the release is created in this (private) repository, which clients cannot see. |
|
||||
| `RELEASES_REPO` | variable (optional) | `owner/name` of the public repository; default `<owner>/titano-releases`. Builds embed it through the `TitanoReleasesRepo` MSBuild property (default `alby96/titano-releases`), so keep the two in line. |
|
||||
| `RELEASES_REPO` | variable (optional) | `owner/name` of the public repository; default `<owner>/titano-releases`. `release.yml` passes it to every build as the `TitanoReleasesRepo` MSBuild property, so the update check, licence and issue links of the binaries read the repository the release goes to (local builds default to `alby96/titano-releases`). |
|
||||
| `SIGN_PFX_BASE64` | secret (optional) | Base64 of the Authenticode code-signing certificate (`.pfx`). Without it builds are unsigned. |
|
||||
| `SIGN_PASSWORD` | secret (optional) | Password of that `.pfx`. |
|
||||
|
||||
|
||||
Reference in new issue
Block a user