Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docs workflow #2128

Merged
merged 1 commit into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
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
33 changes: 13 additions & 20 deletions .woodpecker/docs.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
when:
event: [pull_request, push, cron]
branch: ${CI_REPO_DEFAULT_BRANCH}
path:
- "docs/**"
- ".woodpecker/docs.yml"
# since we generate docs for cli tool we have to watch this too
- "cli/**"
- "cmd/cli/**"
# api docs
- "server/api/**"
- event: [pull_request, push]
branch: ${CI_REPO_DEFAULT_BRANCH}
path:
- "docs/**"
- ".woodpecker/docs.yml"
# since we generate docs for cli tool we have to watch this too
- "cli/**"
- "cmd/cli/**"
# api docs
- "server/api/**"
- cron: update_docs
event: cron

variables:
- &golang_image 'golang:1.20.2'
Expand All @@ -19,9 +21,6 @@ steps:
image: *golang_image
commands:
- make docs
when:
- cron: update_docs
event: cron

build:
image: *node_image
Expand All @@ -30,9 +29,6 @@ steps:
- corepack enable
- pnpm install --frozen-lockfile
- pnpm build
when:
- cron: update_docs
event: cron

deploy-preview:
image: woodpeckerci/plugin-surge-preview:next
Expand Down Expand Up @@ -72,7 +68,4 @@ steps:
- git commit -m "Deploy website - based on ${CI_COMMIT_SHA}"
- git push
when:
- event: push
branch: ${CI_REPO_DEFAULT_BRANCH}
- cron: update_docs
event: cron
- event: [push, cron]
2 changes: 1 addition & 1 deletion .woodpecker/web.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
when:
event: [pull_request, tag]
path: &when_path
path:
# related config files
- ".woodpecker/web.yml"
# web source code
Expand Down