Skip to content

using a token bucket pattern #16

using a token bucket pattern

using a token bucket pattern #16

name: Deploy Search Worker
on:
push
# paths:
# - 'search/worker/**'
jobs:
deploy:
name: Run deploy
runs-on: ubuntu-latest
defaults:
run:
working-directory: search/worker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
# if we need to change node version, we need to change the Dockerfile on this folder as well
node-version: '18.x'
- name: Install dependencies
run: npm ci
- name: Deploy Wrangler
env:
CLOUDFLARE_ACCOUNT_ID: 919942d1077740aa3cff8c6cf511147a
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: |
npm run deploy