build(release)!: move publishing to Gitea and R2
Prepare signed Gitea releases with the VPS entry point and protect versioned R2 assets from replacement. Use the R2 release feed as the default update source. Verified both type checks and the VPS and R2 release commands in help mode. BREAKING CHANGE: The GitHub Actions release workflows have been removed. Run scripts/release-vps.ts from a checkout of the release tag on Gitea.
This commit is contained in:
1 parent
d58ba9fb9b
commit
894dd0363d
8 files changed
+391
-189
No files matched your search
@@ -3,11 +3,10 @@
|
||||
*
|
||||
* node scripts/build-patch-pack.ts --version <YYYY.MM.DD[.N]> [--out <folder>] [--min-app-version <x.y.z>] [--unsigned]
|
||||
*
|
||||
* The private key comes from the environment variable PATCH_SIGNING_KEY (PEM text), as the release
|
||||
* workflow .github/workflows/patch-pack.yml passes it from the GitHub secret of the same name.
|
||||
* The private key comes from the environment variable PATCH_SIGNING_KEY (PEM text).
|
||||
* --unsigned writes the zip without a signature, for a look at the contents only: the launcher
|
||||
* refuses an unsigned pack. In GitHub Actions --version defaults to the pushed tag
|
||||
* (`patches-<version>`).
|
||||
* refuses an unsigned pack. If omitted, --version can be read from a `patches-<version>` tag
|
||||
* in GITHUB_REF_NAME.
|
||||
*
|
||||
* Only committed files go into a pack: the script refuses when patches/ has uncommitted changes or
|
||||
* untracked files, so a version record is released only after it was committed (it is committed
|
||||
@@ -105,7 +104,7 @@ function main(): number {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/** In GitHub Actions, the version of the pushed `patches-*` tag. */
|
||||
/** The pack version supplied by GITHUB_REF_NAME. */
|
||||
function tagVersion(): string | undefined {
|
||||
const ref = process.env['GITHUB_REF_NAME'];
|
||||
return ref ? (packVersionOfTag(ref) ?? undefined) : undefined;
|
||||
|
||||
Reference in new issue
Block a user