π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
docs: document Ensu release workflows
Manav Rathi7e63410b50c2
diff --git a/.github/docs/ensu-release.md b/.github/docs/ensu-release.mdindex ba196ae9ee..2da6f9fc2e 100644--- a/.github/docs/ensu-release.md+++ b/.github/docs/ensu-release.md@@ -4,39 +4,26 @@## Normal development-Nightly builds of `main` are automatically created every weekday morning (IST), and can also be created by running the `ensu-release` workflow manually. These builds are attached to the draft `ensu-v0.1.16-beta` GitHub release; each nightly keeps updating the same draft.+Nightly builds of `main` are automatically created every weekday morning (IST), and can also be created by running `ensu-build.yml` manually. These builds are attached to the draft `ensu-v0.1.16-beta` GitHub release; each nightly keeps updating the same draft.> [!NOTE]>> All builds (nightly and RC) are also uploaded to Play Store internal testing (Android) and TestFlight (iOS).-## Cut a release branch+## Start release-```sh-git switch main-git pull-git switch -c release/ensu-v0.1.16-node .github/scripts/ensu-version.mjs set 0.1.16-git commit -am "Ensu v0.1.16"-git push -u origin HEAD+```bash+gh workflow run ensu-release.yml \+ -f action=start \+ -f version=0.1.16```-Pushing the release branch creates a draft `ensu-v0.1.16-rc` GitHub release (with a matching tag) and removes the `ensu-v0.1.16-beta` draft.--Scheduled nightly builds are skipped while a release branch exists.--## Move main to next beta+This removes the `ensu-v0.1.16-beta` draft and tag, then:-```bash-git switch main-git pull-git switch -c ensu-v0.1.17-beta-node .github/scripts/ensu-version.mjs set 0.1.17-beta-git commit -am "Start Ensu 0.1.17 beta"-git push -u origin HEAD-```+1. Creates `release/ensu-v0.1.16` with the version set to `0.1.16`+2. Pushes the branch, which triggers `ensu-build.yml` and creates the draft `ensu-v0.1.16-rc` release-Open and merge a PR from `ensu-v0.1.17-beta` into `main`.+The workflow also opens a PR to move `main` to `0.1.17-beta`. Merge that PR after it is created. Scheduled nightlies are skipped while the release branch exists.## Update the RC if needed@@ -50,18 +37,18 @@ git push## Finalize release-Run the workflow on the release branch with the `finalize` flag:-```bash-gh workflow run ensu-release.yml --ref release/ensu-v0.1.16 -f finalize=true+gh workflow run ensu-release.yml \+ -f action=finalize \+ -f version=0.1.16```-This does not create another build. It tags the RC commit as `ensu-v0.1.16`, moves the GitHub draft from `ensu-v0.1.16-rc` to `ensu-v0.1.16`, removes the RC tag, and deletes the release branch.+This does not create another build. It tags the last RC commit as `ensu-v0.1.16`, moves the GitHub draft from `ensu-v0.1.16-rc` to `ensu-v0.1.16`, removes the RC tag, and deletes the release branch.## Retries-The workflow is safe to retry for transient failures.+Both workflows are safe to retry for transient failures.-Nightly and RC runs update fixed drafts (`ensu-v0.1.16-beta` and `ensu-v0.1.16-rc`). Re-running failed jobs, or triggering the workflow again, updates the same draft.+For `ensu-build.yml`, both nightly or RC builds update fixed drafts (`ensu-v0.1.16-beta` and `ensu-v0.1.16-rc`). Re-running failed jobs, or triggering `ensu-build.yml` again, updates the same draft.-Finalize does not build. It can be re-run on the release branch until it succeeds; branch deletion is the last step.+For `ensu-release.yml`, retries resume the same release state. `action=start` keeps using the existing release branch and next-beta PR. `action=finalize` does not build, and deletes the release branch only after the final draft is ready.\ No newline at end of file