diff --git a/.drone.yml b/.drone.yml index a521535..b6d96d6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,6 +2,9 @@ type: docker name: RadarrSharp +environment: + BUILD_NUM_SINCE_LAST_MINOR_VERSION: 17 + steps: - name: init image: busybox @@ -10,15 +13,16 @@ steps: - echo ${DRONE_BUILD_NUMBER} - echo "$((${DRONE_BUILD_NUMBER}-15))" - echo $((3+4-20)) + - 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 --version-suffix ${DRONE_BUILD_NUMBER} -o . + #- dotnet pack -p:Version=1.0.3 -o . - ls - - dotnet nuget push *.nupkg --api-key oy2adzrarabcfh2xhpvq5um34wvzkf4e5kt5dk52yn7xvm --source https://api.nuget.org/v3/index.json + #- dotnet nuget push *.nupkg --api-key oy2adzrarabcfh2xhpvq5um34wvzkf4e5kt5dk52yn7xvm --source https://api.nuget.org/v3/index.json - name: finish image: busybox