mirror of
https://github.com/Ellpeck/DynamicEnums.git
synced 2024-11-14 21:59:08 +01:00
20 lines
507 B
YAML
20 lines
507 B
YAML
variables:
|
|
- &image mcr.microsoft.com/dotnet/sdk:8.0-jammy
|
|
steps:
|
|
build:
|
|
image: *image
|
|
commands: dotnet build
|
|
test:
|
|
image: *image
|
|
commands: dotnet test --collect:"XPlat Code Coverage"
|
|
pack:
|
|
image: *image
|
|
commands: dotnet pack --version-suffix $CI_PIPELINE_NUMBER
|
|
publish:
|
|
image: *image
|
|
when:
|
|
branch: main
|
|
event: push
|
|
commands: dotnet nuget push -s https://nuget.ellpeck.de/v3/index.json **/*.nupkg -k $BAGET_KEY -n
|
|
secrets:
|
|
- baget_key
|