Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add payments deployment scripts

Manav Rathi212b2663d0fe
diff --git a/.github/workflows/web-deploy-payments.yml b/.github/workflows/web-deploy-payments.yml
new file mode 100644
index 0000000000..c428d88bc2
--- /dev/null
+++ b/.github/workflows/web-deploy-payments.yml
@@ -0,0 +1,43 @@
+name: "Deploy (payments)"
+
+on:
+ push:
+ # Run workflow on pushes to the deploy/payments
+ branches: [deploy/payments]
+
+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: "docs/yarn.lock"
+
+ - name: Install dependencies
+ run: yarn install
+
+ - name: Build payments
+ run: yarn build:payments
+
+ - name: Publish payments
+ uses: cloudflare/pages-action@1
+ with:
+ accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
+ apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
+ projectName: ente
+ branch: deploy/payments
+ directory: web/apps/payments/out
+ wranglerVersion: "3"
diff --git a/.github/workflows/web-nightly.yml b/.github/workflows/web-nightly.yml
index a800a4b736..89d5ecaa5c 100644
--- a/.github/workflows/web-nightly.yml
+++ b/.github/workflows/web-nightly.yml
@@ -78,6 +78,19 @@ jobs:
directory: web/apps/cast/out
wranglerVersion: "3"
+ - name: Build payments
+ run: yarn build:payments
+
+ - name: Publish payments
+ uses: cloudflare/pages-action@1
+ with:
+ accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
+ apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
+ projectName: ente
+ branch: n-payments
+ directory: web/apps/payments/out
+ wranglerVersion: "3"
+
- name: Build photos
run: yarn build:photos
env:
diff --git a/.github/workflows/web-preview.yml b/.github/workflows/web-preview.yml
index 4e86d9a816..2ad73b7a1f 100644
--- a/.github/workflows/web-preview.yml
+++ b/.github/workflows/web-preview.yml
@@ -12,6 +12,7 @@ on:
- "accounts"
- "auth"
- "cast"
+ - "payments"
- "photos"
jobs:
diff --git a/web/docs/deploy.md b/web/docs/deploy.md
index c17de8ffa3..2c3cfcd97a 100644
--- a/web/docs/deploy.md
+++ b/web/docs/deploy.md
@@ -36,10 +36,12 @@ deployments, and the action that triggers them:
| [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 |
@@ -52,8 +54,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).
-- `payments.ente.io` and `family.ente.io` are currently in a separate
- repositories (Enhancement: bring them in here).
+- `family.ente.io` is currently in a separate repositories (Enhancement: bring
+ them in here).
### Preview deployments