|
|
@ -2,6 +2,9 @@
|
|
|
|
type: docker
|
|
|
|
type: docker
|
|
|
|
name: RadarrSharp
|
|
|
|
name: RadarrSharp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
environment:
|
|
|
|
|
|
|
|
BUILD_NUM_SINCE_LAST_MINOR_VERSION: 17
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: init
|
|
|
|
- name: init
|
|
|
|
image: busybox
|
|
|
|
image: busybox
|
|
|
@ -10,15 +13,16 @@ steps:
|
|
|
|
- echo ${DRONE_BUILD_NUMBER}
|
|
|
|
- echo ${DRONE_BUILD_NUMBER}
|
|
|
|
- echo "$((${DRONE_BUILD_NUMBER}-15))"
|
|
|
|
- echo "$((${DRONE_BUILD_NUMBER}-15))"
|
|
|
|
- echo $((3+4-20))
|
|
|
|
- echo $((3+4-20))
|
|
|
|
|
|
|
|
- echo Revision is $((${DRONE_BUILD_NUMBER}-${BUILD_NUM_SINCE_LAST_MINOR_VERSION}))
|
|
|
|
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
- name: test
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:5.0
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:5.0
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- ls
|
|
|
|
- ls
|
|
|
|
- dotnet build
|
|
|
|
- dotnet build
|
|
|
|
- dotnet pack --version-suffix ${DRONE_BUILD_NUMBER} -o .
|
|
|
|
#- dotnet pack -p:Version=1.0.3 -o .
|
|
|
|
- ls
|
|
|
|
- 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
|
|
|
|
- name: finish
|
|
|
|
image: busybox
|
|
|
|
image: busybox
|
|
|
|