Skip to content

Update instructions in the notebook #5

Update instructions in the notebook

Update instructions in the notebook #5

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
jupyter nbconvert 1-neural_networks.ipynb --to slides
mv 1-neural_networks.slides.html temp/1-neural-networks.html
jupyter nbconvert 2-mnist_training.ipynb --to slides
mv 2-mnist_training.slides.html temp/2-mnist-training.html
mv README.md temp/README.md
ls -R temp
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: website
FOLDER: temp
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}