diff --git a/.github/workflows/publish-worker.yml b/.github/workflows/publish-worker.yml index 393e147..f45f75a 100644 --- a/.github/workflows/publish-worker.yml +++ b/.github/workflows/publish-worker.yml @@ -31,7 +31,7 @@ jobs: run: npm install -g wrangler - name: Publish Worker - run: wrangler publish + run: wrangler deploy env: - CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }} + CF_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }} diff --git a/wrangler.toml b/wrangler.toml index 16d1f20..694f91e 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -1,5 +1,5 @@ name = "harmobot" -type = "javascript" +main = "worker.js" account_id = "80f49a0306abf4be4df45242f9799718" workers_dev = true compatibility_date = "2025-02-18"