From 3c34bb9962a24ce3ae55d3adacd3b4be61913a4e Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Tue, 9 May 2023 19:13:51 +0200 Subject: [PATCH] Attempt to publish docs --- .drone.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index f6e5145..51573c6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,5 +17,17 @@ steps: - name: doc image: python commands: + # Build website - pip install mkdocs-material - - mkdocs build --site-dir public \ No newline at end of file + - mkdocs build --site-dir public + # Install AWS + - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + - unzip awscliv2.zip + - ./aws/install + - aws configure set default.s3.signature_version s3v4 + # Upload to bucket + # Note: the following environment variable are required: + # - AWS_ACCESS_KEY_ID + # - AWS_SECRET_ACCESS_KEY + # - AWS_DEFAULT_REGION + - cd public && aws --endpoint-url https://s3.communiquons.org s3 sync . s3://miniok8sbucketsoperator-website \ No newline at end of file