-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 939 Bytes
/
deploy.yml
File metadata and controls
39 lines (32 loc) · 939 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
39
name: Generate and Deploy to GitHub Pages
on:
push:
branches: [main]
schedule:
- cron: "0 6 * * *" # Daily at 6 AM UTC
workflow_dispatch: # Allow manual trigger
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write # Required for gh-pages deployment
steps:
- uses: actions/checkout@v5
- name: Install uv and Python
uses: astral-sh/setup-uv@v7
with:
python-version: "3.14"
- name: Install dependencies
run: uv sync
- name: Generate static HTML
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
mkdir -p data
uv run cfp-radar collect --no-ai data/index.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./data
publish_branch: gh-pages