v3.0.3 #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Documentation | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-documentation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install build packages | |
run: | | |
pip install enum34 requests six python-dateutil setuptools-scm gitchangelog mako wheel twine sphinx sphinx_rtd_theme | |
- name: Generate documentation | |
run: | | |
sphinx-apidoc -o docs-source smartsheet | |
sphinx-build -b html -d docs-source/_build/doctrees docs-source/. docs-source/_build/html | |
- name: Upload Documentation artifact | |
uses: actions/upload-pages-artifact@main | |
with: | |
path: docs-source/_build/html | |
publish-documentation: | |
runs-on: ubuntu-latest | |
needs: build-documentation | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |