Skip to content

fix: BYOK connection test - proper error handling for auth failures, … #84

fix: BYOK connection test - proper error handling for auth failures, …

fix: BYOK connection test - proper error handling for auth failures, … #84

name: Deploy Cloudflare Worker
# 1. When should the robot run?
on:
push:
branches:
- main # Only run when code is pushed to the main branch
paths:
- 'backend/**' # ONLY run if a file inside the 'backend' folder was changed
# 2. What should the robot do?
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy Worker
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Dependencies
working-directory: backend
run: npm ci
- name: Deploy to Cloudflare
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
workingDirectory: 'backend' # Tells it where to find wrangler.toml
command: deploy --env production