-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1 KB
/
publish_website.yaml
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
name: publish_website
on:
push:
branches:
- main
jobs:
push_to_branch:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Jupyter
run: pip install notebook
- name: Export the notebook and Add files
run: |
mkdir temp
cp -r img/ temp/img/
jupyter nbconvert tutorial.ipynb --to slides
mv tutorial.slides.html temp/index.html
ls -R temp
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: website
FOLDER: temp
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}