fix(release): decide channels from every page and never fail after publishing
The release step decided :latest and the releases repository's content after the Gitea release was already public, and could then fail or decide wrongly (owner review 2, phase 1 review): - Re-publishing v0.1.0-rc.1 or rc.2 builds Chronos.Tools from the tag, which has no release-channels: the step failed after publishing and the image job never ran. Any failure to decide (a tag older than the command, an unreadable page, a body that is not a list) now warns and moves no channel, so the version's image is still pushed. - Only the first page (50, newest first) of releases was read, and pre-releases now share it with stable ones: 50 pre-releases after a stable release hid it and moved :latest to a pre-release. The workflow reads every page up to the first empty one (at most 100) and release-channels takes one --releases file per page (Args.GetAll). - The Version step accepted tags release-channels refuses (v01.2.0), which then failed only after publishing. It now uses release-channels' SemVer 2.0 pattern without +BUILD, and a test keeps the two in step. BRIEF §19.3, DECISIONS, CHANGELOG and README step 5 say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a34b33d50b
commit
b2aeb2f587
8 files changed
+129
-40
No files matched your search
@@ -137,8 +137,9 @@ installed copy of either.
|
||||
2. Tag and push: `git tag v0.2.0 && git push origin v0.2.0` (pre-releases: `v0.2.0-rc.1`; they are published as
|
||||
Gitea pre-releases, move `:latest` only while no stable release exists and are ignored by the in-app update check).
|
||||
3. `release.yml` then, in its job *Build, test and publish* (SDK container):
|
||||
- validates the tag, builds with `ChronosVersion` from the tag and `ChronosReleasesUrl` (the repository the release
|
||||
goes to), runs the package guard, the i18n check and the Core, Data, Server and Tools tests;
|
||||
- validates the tag (SemVer 2.0 without build metadata: no leading zeros, no empty identifiers), builds with
|
||||
`ChronosVersion` from the tag and `ChronosReleasesUrl` (the repository the release goes to), runs the package
|
||||
guard, the i18n check and the Core, Data, Server and Tools tests;
|
||||
- cross-compiles the self-contained single-file win-x64 programs (Chronos, Uploader and Setup with ReadyToRun;
|
||||
Server), checks them with `Chronos.Tools pe-check` (GUI subsystem, icon, version, PerMonitorV2 manifest), signs
|
||||
them with osslsigncode when the signing secrets exist, packs `Chronos-Setup-<v>.exe` (components Chronos,
|
||||
@@ -160,7 +161,9 @@ installed copy of either.
|
||||
a pre-release once a stable release exists, only gets its release and its `:<v>` image. Without `REGISTRY_TOKEN`
|
||||
this job fails with instructions while the release is already published: add the secret and re-run the job.
|
||||
5. To publish an existing tag again (for example after adding a secret), run *Release* manually (Actions › Release ›
|
||||
*Run workflow*) with the tag.
|
||||
*Run workflow*) with the tag. The run builds `Chronos.Tools` from the tag: a tag older than `release-channels`
|
||||
(`v0.1.0-rc.1`, `v0.1.0-rc.2`) gets its release and its `:<v>` image, with a warning, but moves neither the
|
||||
releases repository nor `:latest`.
|
||||
|
||||
### Secrets and variables
|
||||
|
||||
|
||||
Reference in new issue
Block a user