From ff8653d81358e298ee167b7809a40849b95390be Mon Sep 17 00:00:00 2001 From: harshbaz Date: Fri, 9 Feb 2024 14:13:17 +0530 Subject: [PATCH] Create static build for pages --- .github/workflows/webclient-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/webclient-test.yml b/.github/workflows/webclient-test.yml index e433bd122..7ffdabbc7 100644 --- a/.github/workflows/webclient-test.yml +++ b/.github/workflows/webclient-test.yml @@ -49,14 +49,14 @@ jobs: submodules: "true" - name: Set-up env uses: ./.github/workflows/webclient-setup - - run: npm run wc:build + - run: npm run wc:build:static:prod - name: Deploy preview build uses: cloudflare/wrangler-action@2.0.0 with: apiToken: ${{ secrets.CLOUDFLARE_WORKERS_DEPLOY_API_TOKEN }} workingDirectory: "packages/web-client/" - command: pages publish ".svelte-kit/cloudflare" --branch=${{ github.head_ref }} --project-name=hot-or-not-web-client --commit-dirty=true | tee url.txt + command: pages publish "./build" --branch=${{ github.head_ref }} --project-name=hot-or-not-web-client --commit-dirty=true | tee url.txt env: CLOUDFLARE_ACCOUNT_ID: "a209c523d2d9646cc56227dbe6ce3ede" - name: Get preview deployment URL