Skip to content

Coerce environment sharing with inject #42

Coerce environment sharing with inject

Coerce environment sharing with inject #42

Workflow file for this run

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
sudo apt install pipx
pipx install nbconvert
pipx inject 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