Skip to content

Commit 8179330

Browse files
committed
fix slides deploy
1 parent b02ac1b commit 8179330

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,29 @@ jobs:
2222
uses: actions/setup-python@v1
2323
with:
2424
python-version: ${{ matrix.python-version }}
25+
26+
# Caching
27+
- name: Try to uncache environment
28+
uses: actions/cache@v2
29+
with:
30+
path: ${{ env.pythonLocation }}
31+
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('dev-requirements.txt') }}
32+
33+
# Installing
2534
- name: Install dependencies
2635
run: |
27-
pip install -r ./docs/requirements.txt
28-
36+
pip install -r ./docs/requirements.txt --upgrade --upgrade-strategy eager
37+
2938
# Build the book
3039
- name: Build the book
3140
run: |
3241
jupyter-book build docs
3342
43+
# Move pdfs
44+
- name: Moving slides to static HTML
45+
run: |
46+
cat ./docs/slides/manifest.txt | xargs -I % cp -r ./docs/slides/%/%.pdf ./docs/_build/html/
47+
3448
# Deploy the book's HTML to gh-pages branch
3549
- name: GitHub Pages action
3650
uses: peaceiris/[email protected]

docs/slides/manifest.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
talk

0 commit comments

Comments
 (0)