1
0
Fork 0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-01-10 17:45:36 +00:00

Fix docs workflow ()

Some steps were not longer executed and some `when` conditions are not
longer necessary. Follow-up 
This commit is contained in:
qwerty287 2023-08-07 11:14:30 +02:00 committed by GitHub
parent 516bc475b6
commit b485d1bf70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 21 deletions
.woodpecker

View file

@ -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]

View file

@ -1,6 +1,6 @@
when:
event: [pull_request, tag]
path: &when_path
path:
# related config files
- ".woodpecker/web.yml"
# web source code