Added PPO #72
This file contains hidden or 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: Build and Deploy Notebooks | |
| on: | |
| push: | |
| branches: [master] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install nbconvert | |
| run: pip install nbconvert | |
| - name: Convert notebooks to HTML | |
| run: | | |
| mkdir -p site | |
| for notebook in notebooks/*.ipynb; do | |
| name=$(basename "$notebook" .ipynb) | |
| jupyter nbconvert "$notebook" --to html --output "$name" --output-dir site | |
| done | |
| - name: Inject custom styling | |
| run: | | |
| python inject_style.py | |
| - name: Copy main page | |
| run: cp index.html site/index.html | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./site |