Skip to content

Commit 0805988

Browse files
committed
feat: test for build
1 parent d26eb22 commit 0805988

File tree

14 files changed

+56
-144
lines changed

14 files changed

+56
-144
lines changed

.github/workflows/gh-pages.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy Sphinx to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build-and-deploy:
13+
runs-on: ubuntu-20.04
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: 3.9
22+
23+
- name: Install sphinx dependencies
24+
run: |
25+
pip install -r requirements.txt
26+
27+
- name: Build Sphinx
28+
run: |
29+
cd docs/sphinx
30+
make clean
31+
make html
32+
33+
- name: Deploy to GitHub Pages
34+
uses: peaceiris/actions-gh-pages@v3
35+
if: ${{ github.ref == 'refs/heads/main' }}
36+
with:
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
publish_dir: ./docs/sphinx/build/html
39+
keep_files: true

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.vscode
33

44
# ignore build
5-
build
5+
docs/sphinx/build
66

77
# npm modules
88
node_modules
File renamed without changes.
File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# DEMO
2+
3+
4+
## 1
5+
## 2
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
TEST
2+
=====
3+
4+
.. toctree::
5+
:maxdepth: 2
6+
7+
1
8+
=====
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)