Drop dependecy chain from docs workflow (#4638)

This commit is contained in:
Robert Kaussow 2024-12-29 00:56:11 +01:00 committed by GitHub
parent 8862068907
commit 0560630e4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,15 +39,15 @@ when:
steps:
prettier:
image: docker.io/woodpeckerci/plugin-prettier:1.0.0
depends_on: []
settings:
version: 3.3.3
when:
- event: pull_request
build-cli:
image: *golang_image
commands:
- make docs
depends_on: prettier
when:
- path: *when_path
event: [tag, pull_request, push]
@ -60,9 +60,6 @@ steps:
- corepack enable
- pnpm install --frozen-lockfile
- pnpm build
depends_on:
- prettier
- build-cli
when:
- path: *when_path
event: [tag, pull_request, push]
@ -77,12 +74,9 @@ steps:
forge_repo_token:
from_secret: GITHUB_TOKEN_SURGE
failure: ignore
depends_on:
- prettier
- build
when:
event: [pull_request, pull_request_closed]
path: *when_path
- event: [pull_request, pull_request_closed]
path: *when_path
deploy-prepare:
image: *alpine_image
@ -96,9 +90,6 @@ steps:
- echo "$BOT_PRIVATE_KEY" > $HOME/.ssh/id_rsa
- chmod 0600 $HOME/.ssh/id_rsa
- git clone --depth 1 --single-branch git@github.com:woodpecker-ci/woodpecker-ci.github.io.git ./docs_repo
depends_on:
- prettier
- build
when:
- event: push
path:
@ -114,9 +105,6 @@ steps:
- apk add jq
- jq '.next = "next-${CI_COMMIT_SHA:0:10}"' ./docs_repo/version.json > ./docs_repo/version.json.tmp
- mv ./docs_repo/version.json.tmp ./docs_repo/version.json
depends_on:
- prettier
- deploy-prepare
when:
- event: push
path: *docker_path
@ -129,9 +117,6 @@ steps:
- if [[ "${CI_COMMIT_TAG}" != *"rc"* ]] ; then jq '.latest = "${CI_COMMIT_TAG}"' ./docs_repo/version.json > ./docs_repo/version.json.tmp && mv ./docs_repo/version.json.tmp ./docs_repo/version.json ; fi
- jq '.rc = "${CI_COMMIT_TAG}"' ./docs_repo/version.json > ./docs_repo/version.json.tmp
- mv ./docs_repo/version.json.tmp ./docs_repo/version.json
depends_on:
- prettier
- deploy-prepare
when:
- event: tag
@ -141,9 +126,6 @@ steps:
- apk add rsync
# copy all docs files and delete all old ones, but leave CNAME, index.yaml and version.json untouched
- rsync -r --exclude .git --exclude CNAME --exclude index.yaml --exclude README.md --exclude version.json --delete docs/build/ ./docs_repo
depends_on:
- prettier
- build
when:
- event: push
path: *when_path
@ -169,9 +151,6 @@ steps:
- test -n "$(git status --porcelain)" || exit 0
- git commit -m "Deploy website - based on ${CI_COMMIT_SHA}"
- git push
depends_on:
- prettier
- copy-files
when:
- event: push
path: