fix: type subscribe.ts body as unknown cast #39
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js 22 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: "1.3.4" | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Build site | |
| run: bun run build | |
| - name: Install Chromium for search crawl | |
| run: bunx playwright install --with-deps chromium | |
| - name: Generate search index (crawl) | |
| run: bun run build:search:crawl | |
| - name: Deploy to Cloudflare Workers | |
| run: bunx wrangler deploy --config dist/server/wrangler.json | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} |