Removed LS commands for nuget publish
This commit is contained in:
parent
4b447c3cc8
commit
73d46c82f9
@ -13,16 +13,14 @@ steps:
|
|||||||
- echo Drone build number is ${DRONE_BUILD_NUMBER}
|
- echo Drone build number is ${DRONE_BUILD_NUMBER}
|
||||||
- echo Revision is $((${DRONE_BUILD_NUMBER}-$BUILD_NUM_SINCE_LAST_MINOR_VERSION))
|
- echo Revision is $((${DRONE_BUILD_NUMBER}-$BUILD_NUM_SINCE_LAST_MINOR_VERSION))
|
||||||
|
|
||||||
- name: test
|
- name: nuget-publish
|
||||||
image: mcr.microsoft.com/dotnet/sdk:5.0
|
image: mcr.microsoft.com/dotnet/sdk:5.0
|
||||||
environment:
|
environment:
|
||||||
NUGET_API_KEY:
|
NUGET_API_KEY:
|
||||||
from_secret: Nuget_Api_key
|
from_secret: Nuget_Api_key
|
||||||
commands:
|
commands:
|
||||||
- ls
|
|
||||||
- dotnet build
|
- dotnet build
|
||||||
- dotnet pack -p:Version=1.0.$((${DRONE_BUILD_NUMBER}-$BUILD_NUM_SINCE_LAST_MINOR_VERSION)) -o .
|
- 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
|
- dotnet nuget push *.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json
|
||||||
|
|
||||||
- name: finish
|
- name: finish
|
||||||
|
Loading…
x
Reference in New Issue
Block a user