mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-10 17:45:36 +00:00
Fix docs
workflow (#2128)
Some steps were not longer executed and some `when` conditions are not longer necessary. Follow-up #2127
This commit is contained in:
parent
516bc475b6
commit
b485d1bf70
2 changed files with 14 additions and 21 deletions
|
@ -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'
|
||||
|
@ -19,9 +21,6 @@ steps:
|
|||
image: *golang_image
|
||||
commands:
|
||||
- make docs
|
||||
when:
|
||||
- cron: update_docs
|
||||
event: cron
|
||||
|
||||
build:
|
||||
image: *node_image
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
when:
|
||||
event: [pull_request, tag]
|
||||
path: &when_path
|
||||
path:
|
||||
# related config files
|
||||
- ".woodpecker/web.yml"
|
||||
# web source code
|
||||
|
|
Loading…
Reference in a new issue