Merge remote-tracking branch 'refs/remotes/origin/main' #105
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: Deploy Jupyter Book Automatically | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install ffmpeg | |
run: sudo apt-get install -y ffmpeg | |
- name: Install graphviz | |
run: sudo apt-get install -y graphviz | |
- name: Install Dependencies from requirements.txt | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Clean Jupyter Book | |
run: jupyter-book clean . | |
- name: Build Jupyter Book | |
run: jupyter-book build . | |
- name: Deploy to GitHub Pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
echo "Publishing from main branch" | |
ghp-import -n -p -f _build/html -m "Deploy Jupyter Book Automatically" |