mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-20 01:34:08 +00:00
Drop dependecy chain from docs workflow (#4638)
This commit is contained in:
@@ -39,15 +39,15 @@ when:
|
|||||||
steps:
|
steps:
|
||||||
prettier:
|
prettier:
|
||||||
image: docker.io/woodpeckerci/plugin-prettier:1.0.0
|
image: docker.io/woodpeckerci/plugin-prettier:1.0.0
|
||||||
depends_on: []
|
|
||||||
settings:
|
settings:
|
||||||
version: 3.3.3
|
version: 3.3.3
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
|
||||||
build-cli:
|
build-cli:
|
||||||
image: *golang_image
|
image: *golang_image
|
||||||
commands:
|
commands:
|
||||||
- make docs
|
- make docs
|
||||||
depends_on: prettier
|
|
||||||
when:
|
when:
|
||||||
- path: *when_path
|
- path: *when_path
|
||||||
event: [tag, pull_request, push]
|
event: [tag, pull_request, push]
|
||||||
@@ -60,9 +60,6 @@ steps:
|
|||||||
- corepack enable
|
- corepack enable
|
||||||
- pnpm install --frozen-lockfile
|
- pnpm install --frozen-lockfile
|
||||||
- pnpm build
|
- pnpm build
|
||||||
depends_on:
|
|
||||||
- prettier
|
|
||||||
- build-cli
|
|
||||||
when:
|
when:
|
||||||
- path: *when_path
|
- path: *when_path
|
||||||
event: [tag, pull_request, push]
|
event: [tag, pull_request, push]
|
||||||
@@ -77,11 +74,8 @@ steps:
|
|||||||
forge_repo_token:
|
forge_repo_token:
|
||||||
from_secret: GITHUB_TOKEN_SURGE
|
from_secret: GITHUB_TOKEN_SURGE
|
||||||
failure: ignore
|
failure: ignore
|
||||||
depends_on:
|
|
||||||
- prettier
|
|
||||||
- build
|
|
||||||
when:
|
when:
|
||||||
event: [pull_request, pull_request_closed]
|
- event: [pull_request, pull_request_closed]
|
||||||
path: *when_path
|
path: *when_path
|
||||||
|
|
||||||
deploy-prepare:
|
deploy-prepare:
|
||||||
@@ -96,9 +90,6 @@ steps:
|
|||||||
- echo "$BOT_PRIVATE_KEY" > $HOME/.ssh/id_rsa
|
- echo "$BOT_PRIVATE_KEY" > $HOME/.ssh/id_rsa
|
||||||
- chmod 0600 $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
|
- git clone --depth 1 --single-branch git@github.com:woodpecker-ci/woodpecker-ci.github.io.git ./docs_repo
|
||||||
depends_on:
|
|
||||||
- prettier
|
|
||||||
- build
|
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
path:
|
path:
|
||||||
@@ -114,9 +105,6 @@ steps:
|
|||||||
- apk add jq
|
- apk add jq
|
||||||
- jq '.next = "next-${CI_COMMIT_SHA:0:10}"' ./docs_repo/version.json > ./docs_repo/version.json.tmp
|
- 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
|
- mv ./docs_repo/version.json.tmp ./docs_repo/version.json
|
||||||
depends_on:
|
|
||||||
- prettier
|
|
||||||
- deploy-prepare
|
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
path: *docker_path
|
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
|
- 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
|
- jq '.rc = "${CI_COMMIT_TAG}"' ./docs_repo/version.json > ./docs_repo/version.json.tmp
|
||||||
- mv ./docs_repo/version.json.tmp ./docs_repo/version.json
|
- mv ./docs_repo/version.json.tmp ./docs_repo/version.json
|
||||||
depends_on:
|
|
||||||
- prettier
|
|
||||||
- deploy-prepare
|
|
||||||
when:
|
when:
|
||||||
- event: tag
|
- event: tag
|
||||||
|
|
||||||
@@ -141,9 +126,6 @@ steps:
|
|||||||
- apk add rsync
|
- apk add rsync
|
||||||
# copy all docs files and delete all old ones, but leave CNAME, index.yaml and version.json untouched
|
# 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
|
- 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:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
path: *when_path
|
path: *when_path
|
||||||
@@ -169,9 +151,6 @@ steps:
|
|||||||
- test -n "$(git status --porcelain)" || exit 0
|
- test -n "$(git status --porcelain)" || exit 0
|
||||||
- git commit -m "Deploy website - based on ${CI_COMMIT_SHA}"
|
- git commit -m "Deploy website - based on ${CI_COMMIT_SHA}"
|
||||||
- git push
|
- git push
|
||||||
depends_on:
|
|
||||||
- prettier
|
|
||||||
- copy-files
|
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
path:
|
path:
|
||||||
|
Reference in New Issue
Block a user