Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add twoof3 web deploy workflow

Manav Rathib153bd9512b1
diff --git a/.github/workflows/web-deploy-2of3.yml b/.github/workflows/web-deploy-2of3.yml
new file mode 100644
index 0000000000..60e8f22ecd
--- /dev/null
+++ b/.github/workflows/web-deploy-2of3.yml
@@ -0,0 +1,49 @@
+name: "Deploy (twoof3 web)"
+
+on:
+ workflow_dispatch:
+
+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: Audit dependencies
+ run: |
+ yarn audit --level critical || exit_code=$?
+ if [[ $exit_code -ge 16 ]]; then
+ echo "::error::Yarn audit found critical issues"
+ exit 1
+ fi
+
+ - name: Build twoof3
+ run: yarn build:twoof3
+
+ - name: Publish twoof3
+ 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=deploy/2of3 web/apps/twoof3/out