Skip to content

feat: add ImageCompare component and update Advanced section descript… #10

feat: add ImageCompare component and update Advanced section descript…

feat: add ImageCompare component and update Advanced section descript… #10

Workflow file for this run

name: Deploy
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
build-and-deploy:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
NODE_OPTIONS: --max-old-space-size=4096
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- name: Verify build output
run: |
test -f build/index.html
test -f build/404.html
count=$(find build -type f | wc -l)
echo "build file count: $count"
if [ "$count" -lt 100 ]; then
echo "::error::build/ has fewer files than expected ($count)"
exit 1
fi
- uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: deploy
packageManager: pnpm