forked from sunpy/ablog
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 990 Bytes
/
deploy.yml
File metadata and controls
40 lines (35 loc) · 990 Bytes
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
39
40
name: deploy
on:
push:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Set up Python
uses: actions/setup-python@main
with:
python-version: 3.12
- uses: s-weigand/setup-conda@v1
- run: conda --version
- run: which python
- name: Install dependencies
run: |
pip install -r docs/requirements.txt
conda install -c conda-forge pandoc
sudo apt update
sudo apt install -y graphviz
pip install sphinxcontrib-websupport mystx
- name: Build the book
run: |
cd docs
make gettext
make html
sphinx-build -D language=zh_CN -b html ./ _build/html/zh-CN
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3.6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html