π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[web] Build the staging/web branch when deploying if it exists
Manav Rathi05e490aa91ed
diff --git a/.github/workflows/web-deploy-staging.yml b/.github/workflows/web-deploy-staging.ymlindex ca3a6142b2..014afed10f 100644--- a/.github/workflows/web-deploy-staging.yml+++ b/.github/workflows/web-deploy-staging.yml@@ -1,5 +1,7 @@name: "Deploy staging (web)"+# Builds the "staging/web" branch if it exists, "main" otherwise.+on:schedule:# Run everyday at ~3:00 PM IST@@ -18,9 +20,19 @@ jobs:working-directory: websteps:- - name: Checkout code+ - name: Determine branch to build+ id: select-branch+ run: |+ if git ls-remote --exit-code --heads https://github.com/ente-io/ente refs/heads/staging/web; then+ echo "branch=staging/web" >> $GITHUB_OUTPUT+ else+ echo "branch=main" >> $GITHUB_OUTPUT+ fi++ - name: Checkout ${{ steps.select-branch.outputs.branch }}uses: actions/checkout@v4with:+ ref: ${{ steps.select-branch.outputs.branch }}submodules: recursive- name: Setup node and enable yarn caching