File tree Expand file tree Collapse file tree 2 files changed +41
-19
lines changed
Expand file tree Collapse file tree 2 files changed +41
-19
lines changed Original file line number Diff line number Diff line change 1+ name : Doc Builder
2+ on :
3+ release :
4+ types : [published]
5+ permissions :
6+ pages : write
7+ id-token : write
8+ jobs :
9+ build :
10+ name : Python Doc Builder
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v3
14+ - name : Set up Python
15+ uses : actions/setup-python@v4
16+ with :
17+ python-version : " 3.11"
18+ - name : Install dependencies
19+ run : |
20+ python -m pip install --upgrade pip
21+ pip install -r requirements.txt
22+ pip install -r docs/requirements.txt
23+ - name : Sphinx Api Docs
24+ run : sphinx-apidoc -F -H "App Store Server Library" -A "Apple Inc." -V "0.2.1" -e -a -o _staging . tests setup.py
25+ - name : Spinx build
26+ run : sphinx-build -b html _staging _build
27+ - name : Upload docs
28+ uses : actions/upload-pages-artifact@v2
29+ with :
30+ path : _build
31+ deploy :
32+ environment :
33+ name : github-pages
34+ url : ${{ steps.deployment.outputs.page_url }}
35+ needs : build
36+ runs-on : ubuntu-latest
37+ name : Deploy docs
38+ steps :
39+ - name : Deploy
40+ id : deployment
41+ uses : actions/deploy-pages@v2
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments