Compare commits

1 Commits

Author SHA1 Message Date
Ken 6f22edfa95 feat: migrate hosting to Cloudflare Pages via git.ampbox.io
- Update site URL to https://crashtestdev.com, remove /crashtestdev base path
- Add Gitea Actions workflow for Cloudflare Pages deployment
- Remove GitHub Actions workflows (GitHub Pages + legacy Azure SWA)
- Update tests to match new site config

🤖 Generated with [Amplifier](https://github.com/microsoft/amplifier)

Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
2026-05-27 22:44:58 +00:00
+19 -12
View File
@@ -3,22 +3,29 @@ name: Deploy to Cloudflare Pages
on: on:
push: push:
branches: branches:
- main - master
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: node:22
steps: steps:
- name: Checkout - name: Checkout
run: git clone --depth 1 --branch main https://git.ampbox.io/${{ github.repository }}.git . uses: actions/checkout@v4
- name: Build and deploy - name: Setup Node
run: | uses: actions/setup-node@v4
npm ci with:
npm run build node-version: 22
npx wrangler pages deploy dist/ --project-name=crashtestdev
env: - name: Install dependencies
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} run: npm ci
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
- name: Build
run: npm 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 dist/ --project-name=crashtestdev