-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1.03 KB
/
jupyter-book-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Publish Jupyter Book
on:
push:
branches:
- main # Set this to your default branch.
jobs:
build:
runs-on: ubuntu-latest
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
contents: write
steps:
- uses: actions/checkout@v2
- 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
pip install .
- name: Configure git authentication
run: |
git config --global user.email "turulomio@yahoo.es" #gh-pages branch
git config --global user.name "turulomio"
- name: Build Jupyter Book
run: |
jupyter-book build jupyter/
- name: Upload artifact to pass to GitHub Pages
run: |
ghp-import -n -p -f jupyter/_build/html