-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.26 KB
/
main.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Deploy to Cloudflare Pages
on:
schedule:
- cron: '0 * * * *'
push:
branches: [main]
pull_request:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Create and activate virtual environment
run: |
python -m venv venv
source venv/bin/activate
- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install duckdb==1.1.0
# Add any other required Python packages here
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install Observable Framework
run: npm install @observablehq/framework
- name: Build Observable Framework site
run: npm run build
env:
MOTHERDUCK_TOKEN: ${{ secrets.MOTHERDUCK_TOKEN }}
- name: Deploy to Cloudflare Workers with Wrangler
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: |
pages deploy ./dist --project-name="data-adj-news" --branch=""