ci: use `aws s3 sync` to upload docs (#2172)

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
pull/2175/head
Jared Van Bortel 1 month ago committed by GitHub
parent b743c588e8
commit 6c8a44f6c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -370,13 +370,13 @@ jobs:
- run:
name: Make Documentation
command: |
cd gpt4all-bindings/python/
cd gpt4all-bindings/python
mkdocs build
- run:
name: Deploy Documentation
command: |
cd gpt4all-bindings/python/
aws s3 cp ./site s3://docs.gpt4all.io/ --recursive | cat
cd gpt4all-bindings/python
aws s3 sync --delete site/ s3://docs.gpt4all.io/
- run:
name: Invalidate docs.gpt4all.io cloudfront
command: aws cloudfront create-invalidation --distribution-id E1STQOW63QL2OH --paths "/*"

Loading…
Cancel
Save