Skip to content

Commit 51ff463

Browse files
committed
docs(release): old lines get the environment by hand; old tags are not rebuilt
1 parent 580f98c commit 51ff463

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎technical-documentation/engineering/release-and-secrets.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ The fallback skips milestone migration/closure, release-branch automation, main
9393
For a `v1.4.2` while `v1.5.0` is in flight:
9494

9595
1. Branch `release/1.4.x` from the `v1.4.0` (or `v1.4.1`) tag.
96-
2. Cherry-pick the fix commits, plus the `environment: release` change if the base tag predates it (see [Release environment](#release-environment)).
96+
2. Cherry-pick the fix commits. If the base tag predates the `environment: release` lines (see [Release environment](#release-environment)), add `environment: release` by hand to each job of that branch's workflows that reads a release secret: the original commit touches workflows an old line may not have, so it does not cherry-pick cleanly.
9797
3. Push the branch, then `git tag v1.4.2-rc.1` on the branch tip.
9898
4. `git push origin release/1.4.x v1.4.2-rc.1` — `build.yml` works from any branch.
9999

@@ -122,7 +122,7 @@ Each job that reads a release credential declares `environment: release`: `prere
122122

123123
**Moving the credentials** is only done once both of these hold, in this order:
124124

125-
1. Every release branch still in use carries the `environment: release` lines. A tag builds with the `build.yml` it points at, so a branch cut before them, or a backport branch cut later from an older tag, needs the change cherry-picked before its next tag; an existing tag never acquires it. Without it, its builds read empty values and the macOS job falls back to an ad-hoc signature.
125+
1. Every release branch still in use carries the `environment: release` lines. A tag builds with the `build.yml` it points at, so a branch cut before them, or a backport branch cut later from an older tag, needs the change before its next tag. An existing tag never acquires it, so a tag older than the move is not rebuilt: a broken release is fixed by a new version, as immutable releases require anyway. Without it, its builds read empty values and the macOS job falls back to an ad-hoc signature.
126126
2. Each secret is set in the environment, then its repository copy is deleted with `gh secret delete <NAME> --repo getopenscreen/openscreen`. An environment secret does not remove the repository secret of the same name, and the repository copy stays readable from any branch until it is deleted.
127127

128128
## Required release credential

0 commit comments

Comments
 (0)