build(woodpecker): don't publish forgejo release unless publish to crates is okay
This commit is contained in:
parent
72158c9c94
commit
281271a82d
1 changed files with 10 additions and 10 deletions
|
@ -62,6 +62,16 @@ steps:
|
|||
commands:
|
||||
- cargo test
|
||||
|
||||
publish_to_crates_io:
|
||||
when:
|
||||
- event: tag
|
||||
ref: refs/tags/v*
|
||||
image: docker.io/rust:1.77
|
||||
commands:
|
||||
- cargo login "$CARGO_REGISTRY_TOKEN"
|
||||
- cargo publish --registry crates-io --no-verify
|
||||
secrets: [cargo_registry_token]
|
||||
|
||||
publish_to_forgejo:
|
||||
when:
|
||||
- event: tag
|
||||
|
@ -74,13 +84,3 @@ steps:
|
|||
from_secret: FORGEJO_RELEASE_PLUGIN
|
||||
target: main
|
||||
prerelease: true
|
||||
|
||||
publish_to_crates_io:
|
||||
when:
|
||||
- event: tag
|
||||
ref: refs/tags/v*
|
||||
image: docker.io/rust:1.77
|
||||
commands:
|
||||
- cargo login "$CARGO_REGISTRY_TOKEN"
|
||||
- cargo publish --registry crates-io --no-verify
|
||||
secrets: [cargo_registry_token]
|
||||
|
|
Loading…
Reference in a new issue