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

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
Jared Van Bortel 2024-03-27 11:03:10 -04:00 committed by GitHub
parent b743c588e8
commit 6c8a44f6c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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