π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Deploy
Manav Rathi39228270c1b2
diff --git a/.github/workflows/web-deploy-accounts.yml b/.github/workflows/web-deploy-accounts.ymlindex 8164aea441..61411cac6f 100644--- a/.github/workflows/web-deploy-accounts.yml+++ b/.github/workflows/web-deploy-accounts.yml@@ -24,7 +24,7 @@ jobs:with:node-version: 20cache: "yarn"- cache-dependency-path: "docs/yarn.lock"+ cache-dependency-path: "web/yarn.lock"- name: Install dependenciesrun: yarn installdiff --git a/.github/workflows/web-deploy-auth.yml b/.github/workflows/web-deploy-auth.ymlindex 63a56b95be..d195b62f8c 100644--- a/.github/workflows/web-deploy-auth.yml+++ b/.github/workflows/web-deploy-auth.yml@@ -24,7 +24,7 @@ jobs:with:node-version: 20cache: "yarn"- cache-dependency-path: "docs/yarn.lock"+ cache-dependency-path: "web/yarn.lock"- name: Install dependenciesrun: yarn installdiff --git a/.github/workflows/web-deploy-cast.yml b/.github/workflows/web-deploy-cast.ymlindex be4861c71f..c5bbca9542 100644--- a/.github/workflows/web-deploy-cast.yml+++ b/.github/workflows/web-deploy-cast.yml@@ -24,7 +24,7 @@ jobs:with:node-version: 20cache: "yarn"- cache-dependency-path: "docs/yarn.lock"+ cache-dependency-path: "web/yarn.lock"- name: Install dependenciesrun: yarn installdiff --git a/.github/workflows/web-deploy-payments.yml b/.github/workflows/web-deploy-payments.ymlindex 8f4aeae85e..367e1db186 100644--- a/.github/workflows/web-deploy-payments.yml+++ b/.github/workflows/web-deploy-payments.yml@@ -24,7 +24,7 @@ jobs:with:node-version: 20cache: "yarn"- cache-dependency-path: "docs/yarn.lock"+ cache-dependency-path: "web/yarn.lock"- name: Install dependenciesrun: yarn installdiff --git a/.github/workflows/web-deploy-photos.yml b/.github/workflows/web-deploy-photos.ymlindex 64a88421d3..cb3a9db86d 100644--- a/.github/workflows/web-deploy-photos.yml+++ b/.github/workflows/web-deploy-photos.yml@@ -24,7 +24,7 @@ jobs:with:node-version: 20cache: "yarn"- cache-dependency-path: "docs/yarn.lock"+ cache-dependency-path: "web/yarn.lock"- name: Install dependenciesrun: yarn installdiff --git a/.github/workflows/web-deploy-staff.yml b/.github/workflows/web-deploy-staff.ymlnew file mode 100644index 0000000000..4d386344df--- /dev/null+++ b/.github/workflows/web-deploy-staff.yml@@ -0,0 +1,48 @@+name: "Deploy (staff)"++on:+ # Run on every push to main that changes web/apps/staff/+ push:+ branches: [main]+ paths:+ - "web/apps/staff/**"+ - ".github/workflows/web-deploy-staff.yml"+ # Also allow manually running the workflow+ workflow_dispatch:++jobs:+ deploy:+ runs-on: ubuntu-latest++ defaults:+ run:+ working-directory: web++ steps:+ - name: Checkout code+ uses: actions/checkout@v4+ with:+ submodules: recursive++ - name: Setup node and enable yarn caching+ uses: actions/setup-node@v4+ with:+ node-version: 20+ cache: "yarn"+ cache-dependency-path: "web/yarn.lock"++ - name: Install dependencies+ run: yarn install++ - name: Build staff+ run: yarn build:staff++ - name: Publish staff+ uses: cloudflare/pages-action@1+ with:+ accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}+ projectName: ente+ branch: deploy/staff+ directory: web/apps/staff/dist+ wranglerVersion: "3"diff --git a/.github/workflows/web-nightly.yml b/.github/workflows/web-nightly.ymlindex 89d5ecaa5c..b5d8c411f1 100644--- a/.github/workflows/web-nightly.yml+++ b/.github/workflows/web-nightly.yml@@ -34,7 +34,7 @@ jobs:with:node-version: 20cache: "yarn"- cache-dependency-path: "docs/yarn.lock"+ cache-dependency-path: "web/yarn.lock"- name: Install dependenciesrun: yarn installdiff --git a/.github/workflows/web-preview.yml b/.github/workflows/web-preview.ymlindex 2ad73b7a1f..8f39c02474 100644--- a/.github/workflows/web-preview.yml+++ b/.github/workflows/web-preview.yml@@ -34,7 +34,7 @@ jobs:with:node-version: 20cache: "yarn"- cache-dependency-path: "docs/yarn.lock"+ cache-dependency-path: "web/yarn.lock"- name: Install dependenciesrun: yarn installdiff --git a/web/apps/staff/README.md b/web/apps/staff/README.mdindex 90423e499c..e54b674d3d 100644--- a/web/apps/staff/README.md+++ b/web/apps/staff/README.md@@ -1,3 +1,8 @@## Staff dashboardWeb app for staff members to help with support etc.++### Deployment++The app gets redeployed whenever a PR is merged into main. See+[docs/deploy.md](../../docs/deploy.md) for more details.diff --git a/web/docs/deploy.md b/web/docs/deploy.mdindex 6b51a0199d..0b6579eccf 100644--- a/web/docs/deploy.md+++ b/web/docs/deploy.md@@ -29,21 +29,22 @@ and publish to [web.ente.io](https://web.ente.io).Here is a list of all the deployments, whether or not they are productiondeployments, and the action that triggers them:-| URL | Type | Deployment action |-| -------------------------------------------- | ---------- | ------------------------------------------- |-| [web.ente.io](https://web.ente.io) | Production | Push to `deploy/photos` |-| [photos.ente.io](https://photos.ente.io) | Production | Alias of [web.ente.io](https://web.ente.io) |-| [auth.ente.io](https://auth.ente.io) | Production | Push to `deploy/auth` |-| [accounts.ente.io](https://accounts.ente.io) | Production | Push to `deploy/accounts` |-| [cast.ente.io](https://cast.ente.io) | Production | Push to `deploy/cast` |-| [payments.ente.io](https://payments.ente.io) | Production | Push to `deploy/payments` |-| [help.ente.io](https://help.ente.io) | Production | Push to `main` + changes in `docs/` |-| [accounts.ente.sh](https://accounts.ente.sh) | Preview | Nightly deploy of `main` |-| [auth.ente.sh](https://auth.ente.sh) | Preview | Nightly deploy of `main` |-| [cast.ente.sh](https://cast.ente.sh) | Preview | Nightly deploy of `main` |-| [payments.ente.sh](https://payments.ente.sh) | Preview | Nightly deploy of `main` |-| [photos.ente.sh](https://photos.ente.sh) | Preview | Nightly deploy of `main` |-| [preview.ente.sh](https://preview.ente.sh) | Preview | Manually triggered |+| URL | Type | Deployment action |+| -------------------------------------------- | ---------- | ---------------------------------------------|+| [web.ente.io](https://web.ente.io) | Production | Push to `deploy/photos` |+| [photos.ente.io](https://photos.ente.io) | Production | Alias of [web.ente.io](https://web.ente.io) |+| [auth.ente.io](https://auth.ente.io) | Production | Push to `deploy/auth` |+| [accounts.ente.io](https://accounts.ente.io) | Production | Push to `deploy/accounts` |+| [cast.ente.io](https://cast.ente.io) | Production | Push to `deploy/cast` |+| [payments.ente.io](https://payments.ente.io) | Production | Push to `deploy/payments` |+| [help.ente.io](https://help.ente.io) | Production | Push to `main` + changes in `docs/` |+| [staff.ente.io](https://staff.ente.io) | Production | Push to `main` + changes in `web/apps/staff` |+| [accounts.ente.sh](https://accounts.ente.sh) | Preview | Nightly deploy of `main` |+| [auth.ente.sh](https://auth.ente.sh) | Preview | Nightly deploy of `main` |+| [cast.ente.sh](https://cast.ente.sh) | Preview | Nightly deploy of `main` |+| [payments.ente.sh](https://payments.ente.sh) | Preview | Nightly deploy of `main` |+| [photos.ente.sh](https://photos.ente.sh) | Preview | Nightly deploy of `main` |+| [preview.ente.sh](https://preview.ente.sh) | Preview | Manually triggered |### Other subdomains@@ -54,8 +55,8 @@ Apart from this, there are also some other deployments:`albums.ente.io`, it redirects to the `/shared-albums` page (Enhancement:serve it as a separate app with a smaller bundle size).-- `family.ente.io` is currently in a separate repositories (Enhancement: bring- them in here).+- `family.ente.io` is currently in a separate repository (Enhancement: bring+ it in here).### Preview deployments