Update for April #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to GitHub Pages | |
on: | |
push: | |
branches-ignore: | |
- 'gh-pages' # excludes gh-pages | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Jupyter convert | |
run: | | |
sudo apt update | |
sudo apt install python3-pip | |
pip install nbconvert cogapp | |
jupyter-nbconvert welcome.ipynb --to slides | |
mv welcome.slides.html index.html | |
cog --check README.md | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/master' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: . | |
publish_branch: gh-pages |