fix: use legacy domain developer.worldcoin.org (world.org returns 403… #164
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |