Skip to content

fix: rewrap script - cards table has no status column #409

fix: rewrap script - cards table has no status column

fix: rewrap script - cards table has no status column #409

Workflow file for this run

name: Deploy to Cloudflare Workers
on:
push:
branches: [develop] # Only deploy staging from develop
pull_request:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: workers/package-lock.json
- name: Install dependencies
run: |
cd workers
npm ci --prefer-offline --no-audit
- name: Run type check
run: |
cd workers
npm run typecheck
- name: Build CSS
run: |
cd workers
npm run build:css
- name: Build Icons
run: |
cd workers
npm run build:icons
- name: Deploy to Staging
if: github.ref == 'refs/heads/develop'
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: workers
command: deploy
# Production deployment disabled - deploy manually when ready
# - name: Deploy to Production
# if: github.ref == 'refs/heads/main'
# uses: cloudflare/wrangler-action@v3
# with:
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# workingDirectory: workers
# command: deploy --env production
- name: Run health check (Staging)
if: github.ref == 'refs/heads/develop'
run: |
sleep 5
curl -f https://db-card-staging.csw30454.workers.dev/health || exit 1
# - name: Run health check (Production)
# if: github.ref == 'refs/heads/main'
# run: |
# sleep 5
# curl -f https://db-card.csw30454.workers.dev/health || exit 1