fix(points): optimize batch point updates and deletes #111
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 Core | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Generate & verify OpenAPI spec | |
| run: | | |
| bun run openapi | |
| bun run prettier --write openapi.json || true | |
| if ! git diff --quiet openapi.json; then | |
| echo "::error::openapi.json is out of date. Run the OpenAPI Update PR workflow (or re-run it) so the spec is committed before merging to main."; | |
| echo "Changes detected:"; | |
| git --no-pager diff --name-only openapi.json; | |
| exit 1; | |
| fi | |
| - name: Deploy to Cloudflare Workers | |
| run: bun run wrangler deploy | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} |