Skip to content

Commit 9893457

Browse files
authored
Merge pull request #3 from opencloud-eu/ci-docs
CI Docs
2 parents e2e9eee + fc937e0 commit 9893457

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.woodpecker/docs.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

0 commit comments

Comments
 (0)