Add Gitea CI/CD workflow for Cloudflare Pages deployment

- Add deploy.yaml workflow triggered on prod branch push
- Add push:prod script for convenience

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-05-14 08:57:40 -04:00
parent 25f0dbdc84
commit 4c0516aebe
2 changed files with 48 additions and 1 deletions

View File

@@ -0,0 +1,46 @@
name: Generate a build and push to Cloudflare Pages
on:
push:
branches:
- prod
jobs:
build:
runs-on: ubuntu-latest
name: Build and Deploy to Cloudflare Pages
steps:
- name: git-checkout
uses: actions/checkout@v5
- name: pnpm-setup
uses: pnpm/action-setup@v4
with:
version: 10
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./build --project-name="2eInk"