From 0a4a81c1fd825c26ac66bf7e8fb82add2891b7c5 Mon Sep 17 00:00:00 2001 From: Xander Sigler Date: Tue, 18 Jan 2022 11:01:37 -0800 Subject: [PATCH] Get correct revision number --- .drone.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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