-
Notifications
You must be signed in to change notification settings - Fork 41
46 lines (41 loc) · 1.14 KB
/
deploy.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
name: Build and Deploy
on:
push:
branches:
- master
schedule:
- cron: '0 5 * * *' # run at during the 5th hour of each day
- cron: '0 17 * * *' # run at during the 17th hour of each day
jobs:
build-and-deploy:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: '3.x'
architecture: 'x64'
- name: Install project and dependencies
shell: bash
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
export
- name: Build static page
shell: bash
run: |
make clean
make html
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.64.0'
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.DEPLOY_KEY }}
external_repository: covid19-dash/covid19-dash.github.io
publish_branch: master
publish_dir: ./127.0.0.1:8050