RadarrSharp/.drone.yml
Xander Sigler e02af14ad3
Some checks failed
continuous-integration/drone/push Build is failing
Added API Key for nuget
2022-01-18 11:58:40 -08:00

28 lines
749 B
YAML

kind: pipeline
type: docker
name: RadarrSharp
environment:
BUILD_NUM_SINCE_LAST_MINOR_VERSION: 15
steps:
- name: init
image: busybox
commands:
- echo 'Starting build pipeline for RadarrSharp'
- echo Drone build number is ${DRONE_BUILD_NUMBER}
- echo Revision is $((${DRONE_BUILD_NUMBER}-$BUILD_NUM_SINCE_LAST_MINOR_VERSION))
- name: test
image: mcr.microsoft.com/dotnet/sdk:5.0
commands:
- ls
- dotnet build
- dotnet pack -p:Version=1.0.$((${DRONE_BUILD_NUMBER}-$BUILD_NUM_SINCE_LAST_MINOR_VERSION)) -o .
- ls
- dotnet nuget push *.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json
- name: finish
image: busybox
commands:
- echo 'Finished deployment for RadarrSharp'