Skip to content

Commit b4e526c

Browse files
committed
add actions to build pages
1 parent cf5a715 commit b4e526c

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-24.04
14+
steps:
15+
- name: checkout
16+
uses: actions/checkout@v5.0.0
17+
18+
- name: setup python
19+
uses: actions/setup-python@v6.0.0
20+
with:
21+
python-version: 3.13
22+
23+
- name: Install dependencies
24+
run: |
25+
pip install sphinx sphinx_rtd_theme sphinxcontrib-contentui sphinxcontrib-details-directive sphinx_copybutton furo myst_parser
26+
27+
- name: Sphinx build
28+
run: |
29+
cd pages
30+
make
31+
32+
- name: Deploy to GitHub Pages
33+
uses: peaceiris/actions-gh-pages@v4.0.0
34+
with:
35+
publish_branch: gh-pages
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
publish_dir: pages/build/html
38+
force_orphan: true

.github/workflows/sphinx.yaml

Whitespace-only changes.

0 commit comments

Comments
 (0)