Update release-helper (#2801)

This commit is contained in:
Anbraten 2023-11-11 09:03:52 +01:00 committed by GitHub
parent 08f47afbd1
commit 5382b4ae10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 7 deletions

View file

@ -15,6 +15,8 @@ when:
branch: ${CI_REPO_DEFAULT_BRANCH} branch: ${CI_REPO_DEFAULT_BRANCH}
- cron: update_docs - cron: update_docs
event: cron event: cron
- event: manual
evaluate: 'TASK == "docs"'
variables: variables:
- &golang_image 'docker.io/golang:1.21.3' - &golang_image 'docker.io/golang:1.21.3'
@ -27,7 +29,7 @@ steps:
- make docs - make docs
when: when:
- path: *when_path - path: *when_path
- event: cron - event: [cron, manual]
build: build:
image: *node_image image: *node_image
@ -38,7 +40,7 @@ steps:
- pnpm build - pnpm build
when: when:
- path: *when_path - path: *when_path
- event: cron - event: [cron, manual]
deploy-preview: deploy-preview:
image: docker.io/woodpeckerci/plugin-surge-preview:1.2.2 image: docker.io/woodpeckerci/plugin-surge-preview:1.2.2
@ -82,6 +84,6 @@ 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, cron] - event: push
path: *when_path path: *when_path
- event: tag - event: [cron, manual, tag]

View file

@ -2,7 +2,7 @@ version: 1
steps: steps:
release-helper: release-helper:
image: woodpeckerci/plugin-ready-release-go:0.7.0 image: woodpeckerci/plugin-ready-release-go:1.0.0
pull: true pull: true
settings: settings:
release_branch: ${CI_REPO_DEFAULT_BRANCH} release_branch: ${CI_REPO_DEFAULT_BRANCH}
@ -12,5 +12,7 @@ steps:
from_secret: GITHUB_TOKEN from_secret: GITHUB_TOKEN
when: when:
event: push - event: push
branch: ${CI_REPO_DEFAULT_BRANCH} branch: ${CI_REPO_DEFAULT_BRANCH}
- event: manual
evaluate: 'TASK == "release-helper"'