File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy Sphinx Documentation to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - ' docs/**'
9+ - ' .github/workflows/docs.yml'
10+ workflow_dispatch : # 수동 실행 가능
11+
12+ permissions :
13+ contents : read
14+ pages : write
15+ id-token : write
16+
17+ concurrency :
18+ group : " pages"
19+ cancel-in-progress : false
20+
21+ jobs :
22+ build :
23+ runs-on : ubuntu-latest
24+ steps :
25+ - name : Checkout repository
26+ uses : actions/checkout@v4
27+
28+ - name : Setup Python
29+ uses : actions/setup-python@v5
30+ with :
31+ python-version : ' 3.11'
32+
33+ - name : Install uv
34+ uses : astral-sh/setup-uv@v4
35+
36+ - name : Install dependencies
37+ run : |
38+ uv sync --group dev
39+
40+ - name : Build Sphinx documentation
41+ run : |
42+ cd docs
43+ uv run sphinx-build -b html source build/html
44+
45+ - name : Setup Pages
46+ uses : actions/configure-pages@v4
47+
48+ - name : Upload artifact
49+ uses : actions/upload-pages-artifact@v3
50+ with :
51+ path : docs/build/html
52+
53+ deploy :
54+ environment :
55+ name : github-pages
56+ url : ${{ steps.deployment.outputs.page_url }}
57+ runs-on : ubuntu-latest
58+ needs : build
59+ steps :
60+ - name : Deploy to GitHub Pages
61+ id : deployment
62+ uses : actions/deploy-pages@v4
63+
You can’t perform that action at this time.
0 commit comments