File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : deploy-book
2
+
3
+ # Only run this when the master branch changes
4
+ on :
5
+ push :
6
+ branches :
7
+ - master
8
+
9
+ # This job installs dependencies, build the book, and pushes it to `gh-pages`
10
+ jobs :
11
+ deploy-book :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+
16
+ # Install dependencies
17
+ - name : Set up Python 3.7
18
+ uses : actions/setup-python@v1
19
+ with :
20
+ python-version : 3.7
21
+
22
+ - name : Install dependencies
23
+ run : |
24
+ pip install -U jupyter-book
25
+
26
+
27
+ # Build the book
28
+ - name : Build the book
29
+ run : |
30
+ jupyter-book build .
31
+
32
+ # Push the book's HTML to github-pages
33
+ - name : GitHub Pages action
34
+
35
+ with :
36
+ github_token : ${{ secrets.GITHUB_TOKEN }}
37
+ publish_dir : ./_build/html
You can’t perform that action at this time.
0 commit comments