-
Notifications
You must be signed in to change notification settings - Fork 774
41 lines (33 loc) · 897 Bytes
/
cron.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
name: Cron
on:
schedule:
- cron: '0 8 * * *'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Set up bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: |
make pre-build
bun install
- name: Populate the latest data
run: make generate
env:
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Sync data to the blob store
run: bun sync up
env:
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
- name: Trigger deployment
uses: joelwmale/webhook-action@master
with:
url: ${{ secrets.DEPLOY_HOOK_URL }}