From 3a1e880fb6dd96d051c8e2d5a0158c8b55de8fd4 Mon Sep 17 00:00:00 2001 From: Aaron Stannard Date: Tue, 5 May 2026 13:37:07 +0000 Subject: [PATCH 1/2] Add Cloudflare Pages deployment workflow Deploys to Cloudflare Pages on push to dev branch using wrangler-action. Requires CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID as repository secrets. --- .github/workflows/deploy.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..57a9763 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,36 @@ +name: deploy + +on: + push: + branches: + - dev + +jobs: + deploy: + name: "Deploy to Cloudflare Pages" + runs-on: ubuntu-latest + permissions: + contents: read + deployments: write + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build site + run: npm run build + + - name: Deploy to Cloudflare Pages + uses: cloudflare/wrangler-action@v3 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + command: pages deploy dist --project-name=netclaw-website From 5ae8b8617741df2bcc0c044db5f0006856c2dc79 Mon Sep 17 00:00:00 2001 From: Aaron Stannard Date: Tue, 5 May 2026 14:49:55 +0000 Subject: [PATCH 2/2] Add production environment to deploy workflow Enables deployment tracking in the GitHub repo's Environments tab with a link to netclaw.dev. --- .github/workflows/deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 57a9763..d35da7f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,6 +9,9 @@ jobs: deploy: name: "Deploy to Cloudflare Pages" runs-on: ubuntu-latest + environment: + name: production + url: https://netclaw.dev permissions: contents: read deployments: write