set env variable from secret
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is failing Details

master
Evan Hemsley 2020-02-20 14:52:03 -08:00
parent 07c17a5d1e
commit 7481c4d9a9
1 changed files with 4 additions and 1 deletions

View File

@ -14,8 +14,11 @@ steps:
- name: deploy
image: mcr.microsoft.com/dotnet/core/sdk:3.1
environment:
API_KEY:
from_secret: API_KEY
commands:
- dotnet nuget push /build/Structs/bin/Release/MoonTools.Core.Structs.*.nupkg -k $API_KEY -s https://api.nuget.org/v3/index.json
- dotnet nuget push /build/Structs/bin/Release/MoonTools.Core.Structs.*.nupkg -s https://api.nuget.org/v3/index.json -k $API_KEY
when:
ref:
- refs/tags/*.*.*