From 8bf8a6b3b9b3cddbca04810eb5b1252924577b76 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Thu, 14 Jul 2022 17:25:04 +0100 Subject: [PATCH] build docs on branch push --- .woodpecker/.docs.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .woodpecker/.docs.yml diff --git a/.woodpecker/.docs.yml b/.woodpecker/.docs.yml new file mode 100644 index 000000000..ca909bdc9 --- /dev/null +++ b/.woodpecker/.docs.yml @@ -0,0 +1,23 @@ +pipeline: + build: + when: + event: + - push + secrets: + - SCW_ACCESS_KEY + - SCW_SECRET_KEY + - SCW_DEFAULT_ORGANIZATION_ID + environment: + CI: "true" + image: python:3.10-slim + commands: + - apt-get update && apt-get install -y rclone wget git zip + - wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64 + - mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli + - chmod +x scaleway-cli + - ./scaleway-cli object config install type=rclone + - cd docs + - pip install -r requirements.txt + - mkdocs build + - zip -r docs.zip site/* + - rclone copy site/* scaleway:akkoma-docs/$CI_COMMIT_BRANCH/