Skip to content

Commit 082ecc3

Browse files
Documentation publishing via GH Pages
1 parent 5c29e96 commit 082ecc3

File tree

2 files changed

+41
-19
lines changed

2 files changed

+41
-19
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

.readthedocs.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)