Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Give each desktop release a fresh commit for its tag

Manav Rathi7af48fb160b8
diff --git a/.github/workflows/app-release.yml b/.github/workflows/app-release.yml
index 0b32d6e293..18762b6297 100644
--- a/.github/workflows/app-release.yml
+++ b/.github/workflows/app-release.yml
@@ -76,12 +76,20 @@ jobs:
permission-contents: write
permission-pull-requests: write
+ - name: Configure git identity
+ env:
+ GH_TOKEN: ${{ steps.app_token.outputs.token }}
+ APP_SLUG: ${{ steps.app_token.outputs.app-slug }}
+ run: |
+ bot_id="$(gh api "/users/${APP_SLUG}[bot]" --jq .id)"
+ git config --global user.name "${APP_SLUG}[bot]"
+ git config --global user.email "${bot_id}+${APP_SLUG}[bot]@users.noreply.github.com"
+
- name: Start release
if: inputs.action == 'start'
env:
GH_TOKEN: ${{ steps.app_token.outputs.token }}
RUNS_TOKEN: ${{ github.token }}
- APP_SLUG: ${{ steps.app_token.outputs.app-slug }}
run: |
set -euo pipefail
@@ -94,10 +102,6 @@ jobs:
"https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "$@"
}
- bot_id="$(gh api "/users/${APP_SLUG}[bot]" --jq .id)"
- git config user.name "${APP_SLUG}[bot]"
- git config user.email "${bot_id}+${APP_SLUG}[bot]@users.noreply.github.com"
-
release_branch="release/${APP}-v${VERSION}"
beta_tag="${APP}-v${VERSION}-beta"
IFS=. read -r major minor patch <<< "${VERSION}"
@@ -181,6 +185,10 @@ jobs:
git tag "photos-desktop-v${VERSION}" "${release_sha}"
git push origin "refs/tags/photos-desktop-v${VERSION}"
+ git clone --depth 1 "https://x-access-token:${GH_TOKEN}@github.com/ente/photos-desktop.git" photos-desktop
+ git -C photos-desktop commit --allow-empty -m "v${VERSION}"
+ git -C photos-desktop push
+
gh release edit "v${VERSION}" --repo ente/photos-desktop --draft=false --prerelease=false --latest
gh release delete "photos-desktop-v${VERSION}-rc" --yes --cleanup-tag --repo ente/nightly || true
git_push_release_branch ":refs/heads/${release_branch}"