Skip to content

fix: use legacy domain developer.worldcoin.org (world.org returns 403… #164

fix: use legacy domain developer.worldcoin.org (world.org returns 403…

fix: use legacy domain developer.worldcoin.org (world.org returns 403… #164

Workflow file for this run

name: Deploy to Cloudflare
on:
push:
branches: [main]
jobs:
deploy-worker:
name: Deploy Worker
runs-on: ubuntu-latest
env:
NODE_ENV: development
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Migrate D1 (schema.sql)
run: cd worker && npx wrangler d1 execute basemail-db --file=src/db/schema.sql
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
- name: Deploy Worker
run: cd worker && npx wrangler deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
deploy-pages:
name: Deploy Pages
runs-on: ubuntu-latest
env:
NODE_ENV: development
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build
run: cd web && npm run build
- name: Deploy to Cloudflare Pages
run: cd web && npx wrangler pages deploy dist --project-name=basemail-web --commit-message="deploy ${{ github.sha }}"
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}