This repository was archived by the owner on May 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +60
-62
lines changed Expand file tree Collapse file tree 2 files changed +60
-62
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : on-push
2
+ permissions :
3
+ pull-requests : write
4
+ issues : write
5
+ repository-projects : write
6
+
7
+
8
+ on :
9
+ push :
10
+ branches :
11
+ - master
12
+ tags :
13
+ - ' *'
14
+ pull_request :
15
+ branches :
16
+ - master
17
+
18
+ concurrency :
19
+ group : ${{ github.workflow }}-${{ github.ref }}
20
+ cancel-in-progress : true
21
+
22
+ jobs :
23
+ jupyterbook :
24
+ name : build jupyter book
25
+ runs-on : ubuntu-latest
26
+ defaults :
27
+ run :
28
+ shell : bash -l {0}
29
+
30
+ steps :
31
+ - name : Checkout
32
+ uses : actions/checkout@v3
33
+
34
+ - name : Codespell with annotations
35
+ uses : codespell-project/actions-codespell@v1.0
36
+
37
+
38
+ - name : Install Conda Environment
39
+ uses : mamba-org/provision-with-micromamba@v13
40
+ with :
41
+ environment-file : /binder/environment.yml
42
+ cache-env : true
43
+ cache-env-key : ubuntu-latest-3.10
44
+
45
+ - name : Build Jupyter Book
46
+ run : |
47
+ jupyter-book build .
48
+
49
+ - name : Dump Build Logs
50
+ if : always()
51
+ run : |
52
+ if (test -a _build/html/reports/*log); then cat _build/html/reports/*log ; fi
53
+
54
+ - name : Publish to GitHub Pages
55
+ if : github.ref == 'refs/heads/master'
56
+ uses : peaceiris/actions-gh-pages@v3
57
+ with :
58
+ github_token : ${{ secrets.GITHUB_TOKEN }}
59
+ publish_dir : _build/html
60
+ publish_branch : gh-pages
You can’t perform that action at this time.
0 commit comments