feat: add script for vitepress
This commit is contained in:
parent
aeb864d09e
commit
a29c12d1ea
28
static/vitepress.yml
Normal file
28
static/vitepress.yml
Normal file
@ -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}
|
Loading…
Reference in New Issue
Block a user