Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ jobs:
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
command: deploy --config wrangler.supabase.toml
secrets: |
SUPABASE_URL
SUPABASE_API_KEY
WORKER_SHARED_SECRET
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_URL: ${{ vars.SUPABASE_URL }}
SUPABASE_API_KEY: ${{ secrets.SUPABASE_API_KEY }}
WORKER_SHARED_SECRET: ${{ secrets.WORKER_SHARED_SECRET }}
27 changes: 17 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,16 +346,23 @@ This project uses GitHub Actions for continuous integration and automated Cloudf

### Required GitHub secrets

Open **Settings → Secrets and variables → Actions** in your GitHub repo and add the following secrets:

| Secret | Used by | Where to find it |
| ----------------------- | ------------------------ | --------------------------------------------------- |
| `SUPABASE_DB_URL` | `supabase-keepalive.yml` | Supabase dashboard → Connect → Transaction mode |
| `CLOUDFLARE_API_TOKEN` | `deploy.yml` | Cloudflare dashboard → My Profile → API Tokens |
| `CLOUDFLARE_ACCOUNT_ID` | `deploy.yml` | Cloudflare dashboard → right-hand sidebar |
| `SUPABASE_URL` | `deploy.yml` | Supabase dashboard → Project Settings → Data API |
| `SUPABASE_API_KEY` | `deploy.yml` | Supabase dashboard → Project Settings → Data API |
| `WORKER_SHARED_SECRET` | `deploy.yml` | Must match `SUPABASE_WORKER_SECRET` in `.env.local` |
Open **Settings → Secrets and variables → Actions** in your GitHub repo and add:

**Repository secrets** (sensitive credentials):

| Secret | Used by | Where to find it |
| ---------------------- | ------------------------ | --------------------------------------------------- |
| `SUPABASE_DB_URL` | `supabase-keepalive.yml` | Supabase dashboard → Connect → Transaction mode |
| `CLOUDFLARE_API_TOKEN` | `deploy.yml` | Cloudflare dashboard → My Profile → API Tokens |
| `SUPABASE_API_KEY` | `deploy.yml` | Supabase dashboard → Project Settings → Data API |
| `WORKER_SHARED_SECRET` | `deploy.yml` | Must match `SUPABASE_WORKER_SECRET` in `.env.local` |

**Repository variables** (non-sensitive config):

| Variable | Used by | Where to find it |
| ----------------------- | ------------ | ------------------------------------------------ |
| `CLOUDFLARE_ACCOUNT_ID` | `deploy.yml` | Cloudflare dashboard → right-hand sidebar |
| `SUPABASE_URL` | `deploy.yml` | Supabase dashboard → Project Settings → Data API |

## Project Structure

Expand Down
Loading