From 261a1276f5a85dec380261452937a19afc8fc5b4 Mon Sep 17 00:00:00 2001 From: Wanjohi <71614375+wanjohiryan@users.noreply.github.com> Date: Wed, 26 Mar 2025 03:20:40 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=87=20ci(www):=20Test=20whether=20it?= =?UTF-8?q?=20is=20working=20(#215)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description This fixes issues with the `apps/www` ci ## Related Issues ## Type of Change - [x] Bug fix (non-breaking change) - [ ] New feature (non-breaking change) - [ ] Breaking change (fix or feature that changes existing functionality) - [ ] Documentation update - [ ] Other (please describe): ## Checklist - [ ] I have updated relevant documentation - [ ] My code follows the project's coding style - [ ] My changes generate no new warnings/errors ## Notes for Reviewers ## Screenshots/Demo ## Additional Context --- .github/workflows/www.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/www.yml b/.github/workflows/www.yml index 9cb366cd..f5f4e3b7 100644 --- a/.github/workflows/www.yml +++ b/.github/workflows/www.yml @@ -1,13 +1,18 @@ -name: Build the website +name: Build apps/www on: - push: + pull_request: paths: - -" apps/www/**" + - "apps/www/**" + - ".github/workflows/www.yml" + push: + branches: [main] + paths: + - "apps/www/**" - ".github/workflows/www.yml" jobs: - deploy-preview: + deploy: runs-on: ubuntu-latest defaults: run: @@ -27,8 +32,9 @@ jobs: packageManager: bun apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - # workingDirectory: "apps/www" wranglerVersion: "3.93.0" - command: pages deploy ./dist --project-name=${{ vars.CF_PAGES_PROJECT_NAME }} + workingDirectory: "apps/www" + command: pages deploy ./dist --project-name=${{ vars.CF_WWW_PAGES_PROJECT_NAME }} --commit-dirty=true + env: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} \ No newline at end of file