ci: deploy documents to minio (#936)

Signed-off-by: longjin <longjin@DragonOS.org>
This commit is contained in:
LoGin 2024-09-25 02:55:16 +08:00 committed by GitHub
parent e35f8aa1b6
commit 2f9b18ba8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ jobs:
working-directory: ./docs
run: |
sudo apt-get update
sudo apt-get install -y python3-pip
sudo apt-get install -y python3-pip awscli
pip3 install -r requirements.txt
- name: build docs
@ -34,3 +34,13 @@ jobs:
run: |
make html-multiversion
- name: deploy docs
working-directory: ./docs
env:
AWS_ENDPOINT_URL: ${{ secrets.DOCS_DEPLOY_S3_ENDPOINT_URL }}
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_S3_API_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_S3_SECRET_KEY }}
run: |
aws s3 sync ./_build/html s3://dragonos-docs --delete