mishima-nexus-client-csharp/.woodpecker.yml

37 lines
1.1 KiB
YAML
Raw Normal View History

# Woodpecker — robotico-nexus-client-csharp
# Quality gate: analyzers + tests + coverlet ≥ 90% (scripts/woodpecker-verify.sh)
# Release: Version in Directory.Build.props → tag v{Version} → pack → download.robotico.dev
when:
- event: pull_request
- event: push
branch: main
steps:
restore-build-test:
image: mcr.microsoft.com/dotnet/sdk:10.0
commands:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3
- bash scripts/woodpecker-verify.sh
when:
- event: [pull_request, push]
release:
image: mcr.microsoft.com/dotnet/sdk:10.0
environment:
PUBLISH_TOKEN:
from_secret: publish_token
GITEA_TOKEN:
from_secret: gitea_token
PACK_VERSION_PROJECT: src/Robotico.Nexus.Client/Robotico.Nexus.Client.csproj
commands:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git ca-certificates python3
- bash scripts/woodpecker-verify.sh
- bash scripts/woodpecker-release.sh
when:
- event: push
branch: main
path:
exclude:
- README.md