File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments