From 7d7f70c87a9a0d24f10b995e4edcf320c22b8729 Mon Sep 17 00:00:00 2001 From: Jacob Bolda Date: Thu, 9 Apr 2026 17:16:19 -0500 Subject: [PATCH] deploy to cloudflare pages --- .github/workflows/deploy.yaml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 2c996cb9..5eecdab6 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,10 +1,5 @@ name: deploy -on: - workflow_dispatch: - pull_request: - push: - branches: - - production +on: [push] jobs: deploy: @@ -14,6 +9,7 @@ jobs: permissions: id-token: write contents: read + deployments: write steps: - name: Checkout @@ -51,9 +47,10 @@ jobs: --output=built \ --base=https://frontside.com - - name: Upload to Deno Deploy - uses: denoland/deployctl@v1 + - name: Upload To Cloudflare Pages + uses: cloudflare/wrangler-action@v3 with: - project: frontside - entrypoint: "jsr:@std/http/file-server" - root: built + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + command: pages deploy built --project-name=frontside + gitHubToken: ${{ secrets.GITHUB_TOKEN }}