From a29c12d1ea77c33d4d2be8dad75fdd0300ce44f8 Mon Sep 17 00:00:00 2001 From: JFronny Date: Mon, 30 Sep 2024 17:23:52 +0200 Subject: [PATCH] feat: add script for vitepress --- static/vitepress.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 static/vitepress.yml diff --git a/static/vitepress.yml b/static/vitepress.yml new file mode 100644 index 0000000..8cbf435 --- /dev/null +++ b/static/vitepress.yml @@ -0,0 +1,28 @@ +#include https://pages.frohnmeyer-wds.de/scripts/clone.yml + +steps: + build: + image: node:18 + pull: true + commands: + - npm install + - npm run docs:build + when: + - branch: ${CI_REPO_DEFAULT_BRANCH} + publish: + image: woodpeckerci/plugin-s3 + pull: true + settings: + bucket: pages + region: nebula + path_style: true + endpoint: https://s3.frohnmeyer-wds.de + access_key: pages + secret_key: + from_secret: pages_secret + source: public/**/* + target: /${CI_REPO} + strip_prefix: public/ + overwrite: true + when: + - branch: ${CI_REPO_DEFAULT_BRANCH}