π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove unused staging deployment workflows
Manav Rathica1abf8b82a4
diff --git a/.github/workflows/web-deploy-one.yml b/.github/workflows/web-deploy-one.ymldeleted file mode 100644index 0b2dbe7539..0000000000--- a/.github/workflows/web-deploy-one.yml+++ /dev/null@@ -1,64 +0,0 @@-name: "Deploy one (web)"--on:- workflow_dispatch:- inputs:- app:- description: "App to build and deploy"- type: choice- required: true- default: "photos"- options:- - "accounts"- - "auth"- - "cast"- - "payments"- - "photos"--permissions:- contents: read--jobs:- deploy:- runs-on: ubuntu-latest-- defaults:- run:- working-directory: web-- steps:- - name: Checkout code- uses: actions/checkout@v4- with:- persist-credentials: false-- - name: Setup node and enable yarn caching- uses: actions/setup-node@v4- with:- node-version: 22- cache: "yarn"- cache-dependency-path: "web/yarn.lock"-- - name: Install dependencies- run: yarn install --frozen-lockfile-- - name: Build ${{ inputs.app }}- run: yarn build:${{ inputs.app }}-- - name: Publish ${{ inputs.app }} to preview- uses: cloudflare/wrangler-action@v3- with:- accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}- apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}- # [Note: Wrangler commit-dirty]- #- # Without the --commit-dirty flag, running the wrangler-action- # always prints a warning when used:- #- # Warning: Your working directory is a git repo and has uncommitted changes- # To silence this warning, pass in --commit-dirty=true- #- # There is no clear documentation of if passing this is- # harmless, but all indications and in-practice tests seem to- # indicate so.- command: pages deploy --project-name=ente --commit-dirty=true --branch=deploy/${{ inputs.app }} web/apps/${{ inputs.app }}/outdiff --git a/.github/workflows/web-deploy-preview.yml b/.github/workflows/web-deploy-preview.ymldeleted file mode 100644index 73dceeb54e..0000000000--- a/.github/workflows/web-deploy-preview.yml+++ /dev/null@@ -1,53 +0,0 @@-name: "Deploy preview (web)"--on:- workflow_dispatch:- inputs:- app:- description: "App to build and deploy"- type: choice- required: true- default: "photos"- options:- - "accounts"- - "auth"- - "cast"- - "payments"- - "photos"--permissions:- contents: read--jobs:- deploy:- runs-on: ubuntu-latest-- defaults:- run:- working-directory: web-- steps:- - name: Checkout code- uses: actions/checkout@v4- with:- persist-credentials: false-- - name: Setup node and enable yarn caching- uses: actions/setup-node@v4- with:- node-version: 22- cache: "yarn"- cache-dependency-path: "web/yarn.lock"-- - name: Install dependencies- run: yarn install --frozen-lockfile-- - name: Build ${{ inputs.app }}- run: yarn build:${{ inputs.app }}-- - name: Publish ${{ inputs.app }} to preview- uses: cloudflare/wrangler-action@v3- with:- accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}- apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}- command: pages deploy --project-name=ente --commit-dirty=true --branch=preview web/apps/${{ inputs.app }}/outdiff --git a/.github/workflows/web-deploy-staging.yml b/.github/workflows/web-deploy-staging.ymldeleted file mode 100644index 659b656e59..0000000000--- a/.github/workflows/web-deploy-staging.yml+++ /dev/null@@ -1,102 +0,0 @@-name: "Deploy staging (web)"--# Builds the "staging/web" branch if it exists, "main" otherwise.--on:- schedule:- # Run everyday at ~3:00 PM IST- #- # See: [Note: Run workflow every 24 hours]- - cron: "25 9 * * *"- # Also allow manually running the workflow- workflow_dispatch:--permissions:- contents: read--jobs:- deploy:- runs-on: ubuntu-latest-- defaults:- run:- working-directory: web-- steps:- - name: Determine branch to build- id: select-branch- working-directory: ${{ github.workspace }}- 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@v4- with:- ref: ${{ steps.select-branch.outputs.branch }}- persist-credentials: false-- - name: Setup node and enable yarn caching- uses: actions/setup-node@v4- with:- node-version: 22- cache: "yarn"- cache-dependency-path: "web/yarn.lock"-- - name: Install dependencies- run: yarn install --frozen-lockfile-- - name: Build photos- run: yarn build:photos- env:- NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT: https://albums.ente.sh-- - name: Publish photos- uses: cloudflare/wrangler-action@v3- with:- accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}- apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}- command: pages deploy --project-name=ente --commit-dirty=true --branch=n-photos web/apps/photos/out-- - name: Build accounts- run: yarn build:accounts-- - name: Publish accounts- uses: cloudflare/wrangler-action@v3- with:- accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}- apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}- command: pages deploy --project-name=ente --commit-dirty=true --branch=n-accounts web/apps/accounts/out-- - name: Build auth- run: yarn build:auth-- - name: Publish auth- uses: cloudflare/wrangler-action@v3- with:- accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}- apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}- command: pages deploy --project-name=ente --commit-dirty=true --branch=n-auth web/apps/auth/out-- - name: Build cast- run: yarn build:cast-- - name: Publish cast- uses: cloudflare/wrangler-action@v3- with:- accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}- apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}- command: pages deploy --project-name=ente --commit-dirty=true --branch=n-cast web/apps/cast/out-- - name: Build payments- run: yarn build:payments-- - name: Publish payments- uses: cloudflare/wrangler-action@v3- with:- accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}- apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}- command: pages deploy --project-name=ente --commit-dirty=true --branch=n-payments web/apps/payments/dist