-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 953 Bytes
/
publish.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: Publish to GH Pages
on:
push:
branches: [ main ]
# schedule:
# - cron: '0 0 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Wheel
run: |
pip install wheel setuptools
- name: Install Jupyter
run: |
pip install notebook
pip install nbconvert-theme-pale-sand-navy
- name: Install dependencies
run: pip install -r requirements.txt
- name: Generate HTML
run: |
jupyter nbconvert --execute --to html --template pale-sand-navy --output-dir dist data_pipeline.ipynb
mv dist/data_pipeline.html dist/index.html
- name: Publish to GH Pages
uses: jamesives/[email protected]
with:
branch: gh-pages
folder: dist