Skip to content

Merge pull request #2 from yral-dapp/monorepo #1

Merge pull request #2 from yral-dapp/monorepo

Merge pull request #2 from yral-dapp/monorepo #1

name: Deploy Cloudflare Workers
on:
push:
branches:
- main
paths:
- "workers/**"
- "Cargo.toml"
- "Cargo.lock"
jobs:
deploy-workers:
name: Deploy ${{ matrix.worker }}
runs-on: ubuntu-latest
strategy:
matrix:
worker: [yral-ml-feed-cache] # add more workers here
defaults:
run:
working-directory: workers/${{ matrix.worker }}
steps:
- uses: actions/checkout@v4
- name: Deploy Worker
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_WORKERS_FULL_EDIT_ACCESS_INCLUDING_BINDINGS }}
workingDirectory: "workers/${{ matrix.worker }}"