-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 979 Bytes
/
data.yaml
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
name: Data
on:
schedule:
- cron: 0 12 * * *
workflow_dispatch:
jobs:
data:
name: Data
permissions:
contents: write
runs-on: ubuntu-latest
concurrency:
group: data-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rye
uses: eifinger/setup-rye@v4
- name: Install Python Dependencies
run: rye sync --no-lock
working-directory: python
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install Web Dependencies
run: bun install --frozen-lockfile
working-directory: web
- name: Fetch Data
run: make data
env:
GH_TOKEN: ${{ github.token }}
- if: github.ref == 'refs/heads/main'
name: Upload Data
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: web/data
branch: data
single-commit: true