docs build

This commit is contained in:
Richard Guo 2023-05-12 10:06:16 -04:00 committed by Richard Guo
parent 3667da931f
commit 0e5189c934

View File

@ -4,6 +4,33 @@ orbs:
python: circleci/python@1.2
jobs:
build-py-docs:
docker:
- image: circleci/python:3.8
steps:
- checkout
- run:
name: Install dependencies
# TODO: eventually this will be cleaned up so we aren't building
# new dependencies each time unnecessarily.
# This will be introduced once we setup branch and path filtering
command: |
sudo apt-get update
sudo apt-get -y install python3 python3-pip
sudo pip3 install awscli --upgrade
sudo pip3 install mkdocs mkdocs-material mkautodoc mkdocstrings
- run:
name: Make Documentation
command: |
cd gpt4all-bindings/python/
mkdocs build
- run:
name: Deploy Documentation
command: |
aws s3 cp ./site s3://docs.gpt4all.io/ --recursive | cat
build-py-linux:
docker:
- image: circleci/python:3.8
@ -132,13 +159,20 @@ jobs:
workflows:
version: 2
build-py-deploy:
deploy-docs:
jobs:
- build-py-linux
- build-py-macos
- build-py-windows
- store-and-upload-wheels:
requires:
- build-py-windows
- build-py-linux
- build-py-macos
- build-py-docs:
filters:
branches:
only:
- main
#build-py-deploy:
# jobs:
#- build-py-linux
#- build-py-macos
#- build-py-windows
#- store-and-upload-wheels:
# requires:
# - build-py-windows
# - build-py-linux
# - build-py-macos