Fix: build and deploy docs. (#575)
* Fix: build and deploy docs. Signed-off-by: dblock <[email protected]> * Run nox -rs generate. Signed-off-by: dblock <[email protected]> --------- Signed-off-by: dblock <[email protected]>
This commit is contained in:
@@ -52,22 +52,3 @@ jobs:
|
||||
- name: Check with Twine
|
||||
working-directory: dist
|
||||
run: twine check *
|
||||
|
||||
test-docs-build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up Python 3.7
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.7
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
- name: Check if Sphinx docs are built
|
||||
run: |
|
||||
pip install -e .[docs]
|
||||
cd docs
|
||||
make html
|
||||
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
name: Build & Deploy Doc
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
name: Build & Deploy Docs
|
||||
on: [push, pull_request, workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
@@ -15,19 +10,17 @@ jobs:
|
||||
with:
|
||||
python-version: 3.7
|
||||
|
||||
- name: Install
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
python -m pip install -U pip
|
||||
pip install --progress-bar off -U .[docs]
|
||||
python3.7 -m pip install nox
|
||||
|
||||
- name: Make
|
||||
run: |
|
||||
cd docs
|
||||
make html
|
||||
cd ..
|
||||
nox -rs docs
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
if: github.ref == 'refs/heads/main'
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./docs/build/html
|
||||
Reference in New Issue
Block a user