Skip to content

Commit

Permalink
Merge pull request #27 from alexanderjordanbaker/GHPagesDocs
Browse files Browse the repository at this point in the history
Documentation publishing via GH Pages
  • Loading branch information
alexanderjordanbaker authored Aug 23, 2023
2 parents 56d3385 + 082ecc3 commit ff2665f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 19 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci-release-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Doc Builder
on:
release:
types: [published]
permissions:
pages: write
id-token: write
jobs:
build:
name: Python Doc Builder
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r docs/requirements.txt
- name: Sphinx Api Docs
run: sphinx-apidoc -F -H "App Store Server Library" -A "Apple Inc." -V "0.2.1" -e -a -o _staging . tests setup.py
- name: Spinx build
run: sphinx-build -b html _staging _build
- name: Upload docs
uses: actions/upload-pages-artifact@v2
with:
path: _build
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy docs
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v2
19 changes: 0 additions & 19 deletions .readthedocs.yaml

This file was deleted.

0 comments on commit ff2665f

Please sign in to comment.