Skip to content

Deploy API

Deploy API #32

Workflow file for this run

# https://developers.cloudflare.com/workers/wrangler/ci-cd/
name: Deploy API
on:
workflow_dispatch:
push:
branches: ['main']
paths: ['db/**']
workflow_run:
workflows: ['Octagon Scraper']
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Build & Deploy Worker
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: api
- run: echo "🎉 API successfully finished!"