mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 14:16:47 +00:00
ci: deploy documents to minio (#936)
Signed-off-by: longjin <longjin@DragonOS.org>
This commit is contained in:
parent
e35f8aa1b6
commit
2f9b18ba8e
12
.github/workflows/docs-multiversion.yml
vendored
12
.github/workflows/docs-multiversion.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user