π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
photos-desktop: verify the built RC before promote; group nightly notes
Manav Rathi830f35fca7b3
diff --git a/.github/workflows/app-release.yml b/.github/workflows/app-release.ymlindex 22747e5d5a..0345d1447c 100644--- a/.github/workflows/app-release.yml+++ b/.github/workflows/app-release.yml@@ -170,13 +170,19 @@ jobs:exit 1firelease_sha="$(git rev-parse HEAD)"+ rc_sha="$(git ls-remote origin "refs/tags/photos-desktop-v${VERSION}-rc" | cut -f1)"+ if [ "${rc_sha}" != "${release_sha}" ]; then+ echo "::error::photos-desktop-v${VERSION}-rc does not point at ${release_branch}"+ exit 1+ figit tag "photos-desktop-v${VERSION}" "${release_sha}"git push origin "refs/tags/photos-desktop-v${VERSION}"gh release edit "v${VERSION}" --repo ente-io/photos-desktop --draft=false --prerelease=false --latest- gh release delete "photos-desktop-v${VERSION}" --yes --cleanup-tag --repo ente-io/nightly || true+ gh release delete "photos-desktop-v${VERSION}-rc" --yes --cleanup-tag --repo ente-io/nightly || truegit_push_release_branch ":refs/heads/${release_branch}"+ git push origin ":refs/tags/photos-desktop-v${VERSION}-rc" || trueexit 0fidiff --git a/.github/workflows/photos-desktop-build.yml b/.github/workflows/photos-desktop-build.ymlindex 1f4ad89382..464006efce 100644--- a/.github/workflows/photos-desktop-build.yml+++ b/.github/workflows/photos-desktop-build.yml@@ -50,24 +50,27 @@ jobs:firelease_version="$(node .github/scripts/photos-desktop-version.mjs get)"- release_tag="photos-desktop-v${release_version}"if [[ "${GITHUB_REF_NAME}" == release/photos-desktop-v* ]]; thenif [[ "${GITHUB_REF_NAME}" != "release/photos-desktop-v${release_version}" ]]; thenecho "::error::Branch ${GITHUB_REF_NAME} does not match desktop version ${release_version}"exit 1fi+ release_tag="photos-desktop-v${release_version}-rc"release_title="π₯οΈ Photos desktop release candidate - ${release_version}"else+ release_tag="photos-desktop-v${release_version}"release_title="π₯οΈ Photos desktop nightly - ${release_version}"fi+ git fetch --force --depth=1 --no-tags origin "refs/tags/${release_tag}:refs/tags/${release_tag}" || true+echo "should_build=true" >> "${GITHUB_OUTPUT}"echo "commit_sha=$(git rev-parse HEAD)" >> "${GITHUB_OUTPUT}"echo "release_version=${release_version}" >> "${GITHUB_OUTPUT}"echo "release_tag=${release_tag}" >> "${GITHUB_OUTPUT}"echo "release_title=${release_title}" >> "${GITHUB_OUTPUT}"- node .github/scripts/release-notes.mjs desktop/changes >> "${GITHUB_OUTPUT}"+ node .github/scripts/release-notes.mjs desktop/changes "${release_tag}" >> "${GITHUB_OUTPUT}"build:needs: build-metadata@@ -81,7 +84,7 @@ jobs:os: [macos-latest, ubuntu-latest, windows-latest]env:- RELEASE_VERSION: ${{ needs.build-metadata.outputs.release_version }}+ RELEASE_TAG: ${{ needs.build-metadata.outputs.release_tag }}IS_RC: ${{ startsWith(github.ref_name, 'release/') }}RELEASE_BODY: ${{ needs.build-metadata.outputs.release_body }}@@ -178,7 +181,7 @@ jobs:env:GH_TOKEN: ${{ steps.nightly_token.outputs.token }}run: |- tag="photos-desktop-v${RELEASE_VERSION}"+ tag="${RELEASE_TAG}"gh release create "${tag}" --repo ente-io/nightly --prerelease --title "${tag}" --notes "${RELEASE_BODY}" || trueshopt -s nullglobgh release upload "${tag}" dist/ente-*.{exe,dmg,AppImage,deb,rpm,pacman} --repo ente-io/nightly --clobber@@ -187,6 +190,8 @@ jobs:needs: [build-metadata, build]if: needs.build-metadata.outputs.should_build == 'true'runs-on: ubuntu-latest+ permissions:+ contents: writesteps:- name: Checkout@@ -194,6 +199,14 @@ jobs:with:ref: ${{ needs.build-metadata.outputs.commit_sha }}+ - name: Point release tag at the successfully built commit+ env:+ COMMIT_SHA: ${{ needs.build-metadata.outputs.commit_sha }}+ RELEASE_TAG: ${{ needs.build-metadata.outputs.release_tag }}+ run: |+ git tag --force "${RELEASE_TAG}" "${COMMIT_SHA}"+ git push --force origin "refs/tags/${RELEASE_TAG}"+- name: Notify Discordcontinue-on-error: trueenv:diff --git a/desktop/docs/release.md b/desktop/docs/release.mdindex cd026ee58a..a57b49f22e 100644--- a/desktop/docs/release.md+++ b/desktop/docs/release.md@@ -16,6 +16,12 @@ Nightly builds of `main` are published by a scheduled workflow automatically, anNightly and RC builds go to [ente-io/nightly](https://github.com/ente-io/nightly) like the other apps.+## In-app "What's new"++Separate from the GitHub and help-site notes: for a release with user-facing changes, update [WhatsNew.tsx](../../web/packages/new/photos/components/WhatsNew.tsx) and bump `changelogVersion` in [changelog.ts](../../web/packages/new/photos/services/changelog.ts) on `main` before cutting the RC.++The dialog shows once when the installed `changelogVersion` is newer than the one the user last saw.+## Start release```sh@@ -34,7 +40,7 @@ Cherry-pick fixes to the release branch to rebuild the candidate.gh workflow run app-release.yml -f action=promote -f app=photos-desktop -f version=1.7.25```-Publishes the `v1.7.25` draft in `ente-io/photos-desktop` as the latest release, pushes the `photos-desktop-v1.7.25` source tag, removes the `v1.7.25` pre-release from `ente-io/nightly`, and deletes the release branch. The website and the brew cask pick up the new latest release automatically.+Publishes the `v1.7.25` draft in `ente-io/photos-desktop` as the latest release, pushes the `photos-desktop-v1.7.25` source tag, removes the `photos-desktop-v1.7.25-rc` pre-release from `ente-io/nightly`, and deletes the release branch. The website and the brew cask pick up the new latest release automatically.It also opens a PR for updating the changelog in the docs.