36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
|
|
# 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:
|
||
|
|
- 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
|
||
|
|
- bash scripts/woodpecker-verify.sh
|
||
|
|
- bash scripts/woodpecker-release.sh
|
||
|
|
when:
|
||
|
|
- event: push
|
||
|
|
branch: main
|
||
|
|
path:
|
||
|
|
exclude:
|
||
|
|
- README.md
|