File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ variables :
2+ - &node_image 'owncloudci/nodejs:20'
3+ - &gh_pages_image 'plugins/gh-pages:1'
4+ - path : &when_path
5+ - ' .vitepress/**'
6+ - ' **/*.md'
7+ - ' .woodpecker/docs.yaml'
8+
9+ when :
10+ - event : push
11+ path :
12+ - << : *when_path
13+ branch :
14+ - ${CI_REPO_DEFAULT_BRANCH}
15+ - event : manual
16+ evaluate : ' TASK == "docs"'
17+
18+ steps :
19+
20+ build :
21+ image : *node_image
22+ commands :
23+ - pnpm install --frozen-lockfile
24+ - pnpm docs:build
25+ when :
26+ - path : *when_path
27+ event : [push]
28+ - event : manual
29+
30+ publish :
31+ image : *gh_pages_image
32+ settings :
33+ username :
34+ from_secret : github_username
35+ password :
36+ from_secret : github_token
37+ pages_directory : .vitepress/dist
38+ copy_contents : true
39+ target_branch : cdperf-docs
40+ delete : true
41+ when :
42+ - path : *when_path
43+ event : [push]
44+ - event : manual
You can’t perform that action at this time.
0 commit comments