Skip to content

fix: Super Admin access denied + role resolution from users table + R… #79

fix: Super Admin access denied + role resolution from users table + R…

fix: Super Admin access denied + role resolution from users table + R… #79

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