build(woodpecker): don't publish forgejo release unless publish to crates is okay
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Paul Campbell 2024-04-10 07:33:41 +01:00
parent 72158c9c94
commit 281271a82d

View file

@ -62,6 +62,16 @@ steps:
commands: commands:
- cargo test - 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: publish_to_forgejo:
when: when:
- event: tag - event: tag
@ -74,13 +84,3 @@ steps:
from_secret: FORGEJO_RELEASE_PLUGIN from_secret: FORGEJO_RELEASE_PLUGIN
target: main target: main
prerelease: true 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]