Skip to content

Update worker.js

Update worker.js #18

Workflow file for this run

---
## 📜 **7. `.github/workflows/deploy.yml` (GitHub Actions for Auto Deployment)**
```yaml

Check failure on line 5 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 5
name: Deploy to Cloudflare Workers
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Wrangler
run: npm install -g wrangler
- name: Authenticate with Cloudflare
run: wrangler login
- name: Deploy Worker
run: wrangler deploy