adding bash script for github package

This commit is contained in:
Sweeky Satpathy 2019-08-22 17:26:11 -07:00
Родитель 03b4ba47ac
Коммит aa192cd2af
1 изменённых файлов: 19 добавлений и 5 удалений

Просмотреть файл

@ -139,9 +139,23 @@ stages:
- script: echo Publish Nuget Github the code!
- task: NuGetCommand@2
- task: Bash@3
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'ClanceyGitHubPackages'
targetType: 'inline'
script: |
# Write your commands here
nuget source Add -Name "GHNuget" \
-Source "https://nuget.pkg.github.com/OWNER/index.json" \
-UserName Clancey -Password $gp
nuget push *.nupkg -Source "GHNuget"
# - task: NuGetCommand@2
# inputs:
# command: 'push'
# packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
# nuGetFeedType: 'external'
# publishFeedCredentials: 'ClanceyGitHubPackages'