mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-11 01:55:27 +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:
|
when:
|
||||||
event: [pull_request, push, cron]
|
- event: [pull_request, push]
|
||||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
path:
|
path:
|
||||||
- "docs/**"
|
- "docs/**"
|
||||||
- ".woodpecker/docs.yml"
|
- ".woodpecker/docs.yml"
|
||||||
# since we generate docs for cli tool we have to watch this too
|
# since we generate docs for cli tool we have to watch this too
|
||||||
- "cli/**"
|
- "cli/**"
|
||||||
- "cmd/cli/**"
|
- "cmd/cli/**"
|
||||||
# api docs
|
# api docs
|
||||||
- "server/api/**"
|
- "server/api/**"
|
||||||
|
- cron: update_docs
|
||||||
|
event: cron
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
- &golang_image 'golang:1.20.2'
|
- &golang_image 'golang:1.20.2'
|
||||||
|
@ -19,9 +21,6 @@ steps:
|
||||||
image: *golang_image
|
image: *golang_image
|
||||||
commands:
|
commands:
|
||||||
- make docs
|
- make docs
|
||||||
when:
|
|
||||||
- cron: update_docs
|
|
||||||
event: cron
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: *node_image
|
image: *node_image
|
||||||
|
@ -30,9 +29,6 @@ steps:
|
||||||
- corepack enable
|
- corepack enable
|
||||||
- pnpm install --frozen-lockfile
|
- pnpm install --frozen-lockfile
|
||||||
- pnpm build
|
- pnpm build
|
||||||
when:
|
|
||||||
- cron: update_docs
|
|
||||||
event: cron
|
|
||||||
|
|
||||||
deploy-preview:
|
deploy-preview:
|
||||||
image: woodpeckerci/plugin-surge-preview:next
|
image: woodpeckerci/plugin-surge-preview:next
|
||||||
|
@ -72,7 +68,4 @@ steps:
|
||||||
- git commit -m "Deploy website - based on ${CI_COMMIT_SHA}"
|
- git commit -m "Deploy website - based on ${CI_COMMIT_SHA}"
|
||||||
- git push
|
- git push
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: [push, cron]
|
||||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
||||||
- cron: update_docs
|
|
||||||
event: cron
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
when:
|
when:
|
||||||
event: [pull_request, tag]
|
event: [pull_request, tag]
|
||||||
path: &when_path
|
path:
|
||||||
# related config files
|
# related config files
|
||||||
- ".woodpecker/web.yml"
|
- ".woodpecker/web.yml"
|
||||||
# web source code
|
# web source code
|
||||||
|
|
Loading…
Reference in a new issue