Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .woodpecker/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
variables:
- &node_image 'owncloudci/nodejs:20'
- &gh_pages_image 'plugins/gh-pages:1'
- path: &when_path
- '.vitepress/**'
- '**/*.md'
- '.woodpecker/docs.yaml'

when:
- event: tag
- event: pull_request
- event: push
path:
- <<: *when_path
branch:
- ${CI_REPO_DEFAULT_BRANCH}
- event: pull_request_closed
path: *when_path
- event: manual
evaluate: 'TASK == "docs"'

steps:

build:
image: *node_image
commands:
- pnpm install --frozen-lockfile
- pnpm docs:build
when:
- path: *when_path
event: [push]
- event: manual

publish:
image: *gh_pages_image
settings:
username:
from_secret: github_username
password:
from_secret: github_token
pages_directory: .vitepress/dist
copy_contents: true
target_branch: cdperf-docs
delete: true
when:
- path: *when_path
event: [push]
- event: manual