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 python: circleci/python@1.2
jobs: 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: build-py-linux:
docker: docker:
- image: circleci/python:3.8 - image: circleci/python:3.8
@ -132,13 +159,20 @@ jobs:
workflows: workflows:
version: 2 version: 2
build-py-deploy: deploy-docs:
jobs: jobs:
- build-py-linux - build-py-docs:
- build-py-macos filters:
- build-py-windows branches:
- store-and-upload-wheels: only:
requires: - main
- build-py-windows #build-py-deploy:
- build-py-linux # jobs:
- build-py-macos #- build-py-linux
#- build-py-macos
#- build-py-windows
#- store-and-upload-wheels:
# requires:
# - build-py-windows
# - build-py-linux
# - build-py-macos