-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1023 Bytes
/
update_viz.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
name: Update visualization
on:
push:
branches:
- main # Set a branch name to trigger deployment
schedule:
- cron: 45 8 * * *
jobs:
update:
runs-on: ubuntu-20.04
name: Update data visualization site
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
architecture: x64
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v2
with:
path: "scripts/requirements.txt"
- name: Generate Folium visualizations
run: "python3 scripts/update_maps.py --path ./public"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
enable_jekyll: true