From b7509707708ea45846b23d3d9287212039fcbd3b Mon Sep 17 00:00:00 2001 From: Sanil Chawla Date: Wed, 11 Feb 2026 23:57:41 -0800 Subject: [PATCH] ci(config): add Cloudflare Pages deployment via Gitea Actions Adds wrangler.toml for Pages config, Gitea Actions workflow that builds with Bun and deploys to Cloudflare Pages on pushes to main. Requires CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID secrets. Also disables subject-case rule in commitlint. --- .gitea/workflows/deploy.yaml | 33 +++++++++++++++++++++++++++++++++ commitlint.config.js | 2 +- wrangler.toml | 3 +++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/deploy.yaml create mode 100644 wrangler.toml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..ec1afc4 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,33 @@ +name: Deploy to Cloudflare Pages + +on: + push: + branches: [main] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: "22" + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Build + run: bun 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 diff --git a/commitlint.config.js b/commitlint.config.js index 26e92ed..8f2bdaa 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -21,7 +21,7 @@ export default { ], "scope-enum": [1, "always", ["page", "style", "config", "deps"]], "scope-empty": [1, "never"], - "subject-case": [2, "always", "lower-case"], + "subject-case": [0], "subject-empty": [2, "never"], "subject-full-stop": [2, "never", "."], "body-leading-blank": [2, "always"], diff --git a/wrangler.toml b/wrangler.toml new file mode 100644 index 0000000..348b512 --- /dev/null +++ b/wrangler.toml @@ -0,0 +1,3 @@ +name = "lofty-landing" +pages_build_output_dir = "dist" +compatibility_date = "2026-02-01"