Skip to content

Commit

Permalink
Merge pull request #2 from yral-dapp/monorepo
Browse files Browse the repository at this point in the history
Monorepo and yral-ml-feed-cache
  • Loading branch information
komal-sai-yral authored Dec 11, 2024
2 parents d019703 + 8781230 commit 82a08e1
Show file tree
Hide file tree
Showing 37 changed files with 4,350 additions and 158 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy-workers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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 }}"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
target
node_modules
.wrangler
**/.wrangler
**/build
**/node_modules
Loading

0 comments on commit 82a08e1

Please sign in to comment.