Skip to content

armgit / ente

Public Imported from GitHub
0

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

Clean up web deploy workflows

Manav Rathi76f5a0d0858c
diff --git a/.github/workflows/docs-deploy-redirect.yml b/.github/workflows/docs-deploy-redirect.yml
index 011f120ed7..e4f6bc5df7 100644
--- a/.github/workflows/docs-deploy-redirect.yml
+++ b/.github/workflows/docs-deploy-redirect.yml
@@ -1,13 +1,10 @@
name: "Deploy (help.ente.io redirect)"
on:
- # Run when the redirect file changes
push:
branches: [main]
paths:
- "infra/services/help-redir/**"
- - ".github/workflows/docs-deploy-redirect.yml"
- # Also allow manually running the workflow
workflow_dispatch:
permissions:
@@ -19,8 +16,7 @@ jobs:
environment: production
steps:
- - name: Checkout code
- uses: actions/checkout@v6
+ - uses: actions/checkout@v6
- name: Deploy redirect to help.ente.io
uses: cloudflare/wrangler-action@v3
diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml
index 589a02274e..77efc2a8f8 100644
--- a/.github/workflows/docs-deploy.yml
+++ b/.github/workflows/docs-deploy.yml
@@ -1,13 +1,11 @@
name: "Deploy (docs)"
on:
- # Run on every push to main that changes docs/
push:
branches: [main]
paths:
- - "docs/**"
- ".github/workflows/docs-deploy.yml"
- # Also allow manually running the workflow
+ - "docs/**"
workflow_dispatch:
permissions:
diff --git a/.github/workflows/infra-deploy-staff.yml b/.github/workflows/infra-deploy-staff.yml
index 03d91a4471..455a057dfd 100644
--- a/.github/workflows/infra-deploy-staff.yml
+++ b/.github/workflows/infra-deploy-staff.yml
@@ -1,20 +1,18 @@
name: "Deploy (staff)"
on:
- # Run on every push to main that changes infra/staff/
push:
branches: [main]
paths:
- - "infra/staff/**"
- ".github/workflows/infra-deploy-staff.yml"
- # Also allow manually running the workflow
+ - "infra/staff/**"
workflow_dispatch:
permissions:
contents: read
jobs:
- lint:
+ deploy:
runs-on: ubuntu-latest
environment: production
@@ -23,8 +21,7 @@ jobs:
working-directory: infra/staff
steps:
- - name: Checkout code
- uses: actions/checkout@v6
+ - uses: actions/checkout@v6
- name: Setup node and enable npm caching
uses: actions/setup-node@v6
@@ -33,11 +30,9 @@ jobs:
cache: "npm"
cache-dependency-path: "infra/staff/package-lock.json"
- - name: Install dependencies
- run: npm ci
+ - run: npm ci
- - name: Build
- run: npm run build
+ - run: npm run build
- name: Publish
uses: cloudflare/wrangler-action@v3
diff --git a/.github/workflows/web-deploy-2of3.yml b/.github/workflows/web-deploy-2of3.yml
index 6c3cf667b6..960b4dddb2 100644
--- a/.github/workflows/web-deploy-2of3.yml
+++ b/.github/workflows/web-deploy-2of3.yml
@@ -1,4 +1,4 @@
-name: "Deploy (twoof3 web)"
+name: "Deploy (2of3)"
on:
workflow_dispatch:
@@ -16,10 +16,8 @@ jobs:
working-directory: web
steps:
- - name: Checkout code
+ - name: Checkout
uses: actions/checkout@v6
- with:
- persist-credentials: false
- name: Setup node and enable yarn caching
uses: actions/setup-node@v6
@@ -44,10 +42,10 @@ jobs:
exit 1
fi
- - name: Build twoof3
+ - name: Build 2of3
run: yarn build:twoof3
- - name: Publish twoof3
+ - name: Publish 2of3
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
diff --git a/.github/workflows/web-deploy.yml b/.github/workflows/web-deploy.yml
index 42308bedcb..160764c9bb 100644
--- a/.github/workflows/web-deploy.yml
+++ b/.github/workflows/web-deploy.yml
@@ -36,10 +36,8 @@ jobs:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
steps:
- - name: Checkout code
+ - name: Checkout
uses: actions/checkout@v6
- with:
- persist-credentials: false
- name: Setup node and enable yarn caching
uses: actions/setup-node@v6
diff --git a/.github/workflows/web-lint.yml b/.github/workflows/web-lint.yml
index 814299fbee..43a147b54e 100644
--- a/.github/workflows/web-lint.yml
+++ b/.github/workflows/web-lint.yml
@@ -29,8 +29,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v6
- with:
- persist-credentials: false
- name: Setup node and enable yarn caching
uses: actions/setup-node@v6