Skip to content

Commit 963fa5e

Browse files
committed
Add workflow to automatically publish html slides
1 parent b34236c commit 963fa5e

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: publish_website
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
push_to_branch:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Setup Python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: '3.x'
21+
22+
- name: Install Jupyter
23+
run: pip install notebook
24+
25+
- name: Export the notebook and Add files
26+
run: |
27+
mkdir temp
28+
cp -r img/ temp/img/
29+
jupyter nbconvert tutorial.ipynb --to slides
30+
mv tutorial.slides.html temp/index.html
31+
ls -R temp
32+
rm -r meta-rl/
33+
34+
- name: Deploy
35+
uses: s0/git-publish-subdir-action@develop
36+
env:
37+
REPO: self
38+
BRANCH: website
39+
FOLDER: temp
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)