Compare commits

..

2 Commits

Author SHA1 Message Date
Sanil Chawla
c38123b595 ci(config): add Cloudflare Pages deployment via Gitea Actions
Some checks failed
Deploy to Cloudflare Pages / deploy (push) Failing after 51s
Adds wrangler.json for static output config and a Gitea Actions
workflow that builds with Bun and deploys to Cloudflare Pages on
pushes to main. Also disables subject-case rule in commitlint.
2026-02-11 23:36:15 -08:00
Sanil Chawla
e88a3dfd52 ci(config): add cloudflare pages deployment via gitea actions
adds wrangler.json for static output config and a gitea actions
workflow that builds with bun and deploys to cloudflare pages on
pushes to main.
2026-02-11 23:35:40 -08:00
3 changed files with 35 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
name: Deploy to Cloudflare Pages
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- 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

View File

@@ -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"],

6
wrangler.json Normal file
View File

@@ -0,0 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/cloudflare/workers-sdk/main/packages/wrangler/config-schema/schema.json",
"name": "lofty-landing",
"pages_build_output_dir": "dist",
"compatibility_date": "2026-02-01"
}