mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Update mac release build to create the nuget.config (#8185)
Update the build definition to create the nuget.config for the gallery modules.
This commit is contained in:
1 parent
acf5eb5053
commit
e6c3a38336
1 file changed
+9
@@ -14,6 +14,15 @@ steps:
|
||||
scriptPath: 'tools/releaseBuild/setReleaseTag.sh'
|
||||
args: '-ReleaseTag $(ReleaseTagVar) -Variable "ReleaseTagVar"'
|
||||
displayName: 'Calculate Release Tag'
|
||||
- powershell: |
|
||||
Import-Module $(Build.SourcesDirectory)/build.psm1 -Force
|
||||
New-NugetConfigFile -NugetFeedUrl $(AzDevOpsFeed) -UserName $(AzDevOpsFeedUserName) -ClearTextPAT $(AzDevOpsFeedPAT) -FeedName AzDevOpsFeed -Destination $(Build.SourcesDirectory)/src/Modules
|
||||
|
||||
if(-not (Test-Path "$(Build.SourcesDirectory)/src/Modules/nuget.config"))
|
||||
{
|
||||
throw "nuget.config is not created"
|
||||
}
|
||||
displayName: 'Add nuget.config for AzDevOps feed for PSGallery modules '
|
||||
- task: ShellScript@2
|
||||
inputs:
|
||||
scriptPath: 'tools/installpsh-osx.sh'
|
||||
|
||||
Reference in new issue
Block a user