Files
crashtestdev/.gitea/workflows/deploy.yml
T
Ken 2b8bd62757
Deploy to Cloudflare Pages / deploy (push) Failing after 13m38s
fix: run in node:22 container (runner lacks Node.js)
🤖 Generated with [Amplifier](https://github.com/microsoft/amplifier)

Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
2026-05-27 23:48:18 +00:00

25 lines
596 B
YAML

name: Deploy to Cloudflare Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: node:22
steps:
- name: Checkout
run: git clone --depth 1 --branch main https://git.ampbox.io/${{ github.repository }}.git .
- name: Build and deploy
run: |
npm ci
npm run build
npx wrangler pages deploy dist/ --project-name=crashtestdev
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}