name: Deploy CI on: push: branches: ["main"] permissions: {} jobs: build: name: Build and Deploy runs-on: ubuntu-latest permissions: contents: read steps: - name: Checkout repository uses: actions/checkout@v6 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '24' registry-url: 'https://registry.npmjs.org' - name: Install pnpm run: npm install -g pnpm - name: Install dependencies run: pnpm install - name: Deploy to Cloudflare Workers run: pnpm run deploy env: CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}