File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : deploy-book
2+
3+ # Run on pushes to main, 5:30pm, or when I say so
4+ on :
5+ schedule :
6+ - cron : ' 30 17 * * *'
7+ workflow_dispatch :
8+ push :
9+ branches :
10+ - main
11+
12+ # This job installs dependencies, builds the book, and pushes it to `gh-pages`
13+ jobs :
14+ deploy-book :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v3
18+
19+ # Install dependencies
20+ - name : Set up Python 3.8
21+ uses : actions/setup-python@v4
22+ with :
23+ python-version : 3.8
24+
25+ - name : Get the main book
26+ uses : actions/checkout@v3
27+ with :
28+ repository : COBA-NIH/MicroscopyForBeginnersReferenceGuide
29+ path : book
30+
31+ - name : Install dependencies
32+ run : |
33+ pip install -r book/requirements.txt
34+
35+ # Build the book
36+ - name : Build the book
37+ run : |
38+ jb config sphinx book
39+ sphinx-build -b html -D language=pt book book/_build/html
40+ rm book/conf.py
41+
42+ # Push the book's HTML to github-pages
43+ - name : GitHub Pages action
44+ uses : peaceiris/actions-gh-pages@v3.6.1
45+ with :
46+ github_token : ${{ secrets.GITHUB_TOKEN }}
47+ publish_dir : book/_build/html
48+ cname : pt.bioimagingguide.org
You can’t perform that action at this time.
0 commit comments