Trying #5
Workflow file for this run
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 Jupyter Book | |
on: | |
push: | |
branches: | |
- "jupyter-in-github" # Set this to your default branch | |
jobs: | |
build-and-publish-book: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install jupyter-book ghp-import | |
- name: Build Jupyter Book | |
run: | | |
jupyter-book build jupyter/ | |
- name: Publish to GitHub Pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config --global user.email "turulomio@yahoo.es" | |
git config --global user.name "turulomio" | |
git config --global credential.helper store | |
# This next command assumes your build output is in the 'jupyter/_build/html' directory. | |
ghp-import -n -p -f jupyter/_build/html |