-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (30 loc) · 891 Bytes
/
scraper.yaml
File metadata and controls
38 lines (30 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: scraper
on:
push:
branches:
- main
paths:
- "apps/scraper/**"
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./apps/scraper
environment: deploy-scraper
env:
DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
steps:
- name: 💾 Checkout code
uses: actions/checkout@v4
- name: 📦 Setup bun
uses: oven-sh/setup-bun@v2
- name: 📦 Install dependencies
run: bun install
- name: 📦 Install Doppler CLI
uses: dopplerhq/cli-action@v3
- name: 🔑 Sync secrets with Cloudflare Worker
run: doppler secrets --json | jq -c 'with_entries(.value = .value.computed)' | bunx wrangler secret bulk
- name: 🚀 Deploy to Cloudflare Workers
run: bun run deploy