diff --git a/.drone.yml b/.drone.yml index c828e2c..54e32e8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,15 +3,14 @@ type: docker name: RadarrSharp environment: - BUILD_NUM_SINCE_LAST_MINOR_VERSION: 17 + BUILD_NUM_SINCE_LAST_MINOR_VERSION: 15 steps: - name: init image: busybox commands: - echo 'Starting build pipeline for RadarrSharp' - - echo ${DRONE_BUILD_NUMBER} - - echo "$((${DRONE_BUILD_NUMBER}-15))" + - echo Drone build number is ${DRONE_BUILD_NUMBER} - echo Revision is $((${DRONE_BUILD_NUMBER}-$BUILD_NUM_SINCE_LAST_MINOR_VERSION)) - name: test @@ -19,9 +18,9 @@ steps: commands: - ls - dotnet build - #- dotnet pack -p:Version=1.0.3 -o . + - dotnet pack -p:Version=1.0.$((${DRONE_BUILD_NUMBER}-$BUILD_NUM_SINCE_LAST_MINOR_VERSION)) -o . - ls - #- dotnet nuget push *.nupkg --api-key oy2adzrarabcfh2xhpvq5um34wvzkf4e5kt5dk52yn7xvm --source https://api.nuget.org/v3/index.json + - dotnet nuget push *.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json - name: finish image: busybox