From 7e98ef4040d58870622a0624efe60bd4d5b432b6 Mon Sep 17 00:00:00 2001 From: "Martin Hinshelwood nkdAgility.com" Date: Sat, 22 Jun 2024 22:31:23 +0100 Subject: [PATCH] [main] Fixes/build other branches (#2108) --- build/azure-pipeline.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/build/azure-pipeline.yml b/build/azure-pipeline.yml index a866bd701..7d5974612 100644 --- a/build/azure-pipeline.yml +++ b/build/azure-pipeline.yml @@ -5,6 +5,10 @@ trigger: - main +- releases/* + +pr: +- main name: $(GITVERSION_SemVer) @@ -271,7 +275,7 @@ stages: script: | Install-Module -Name PowerShellForGitHub -AcceptLicense -Force Write-Host "Imported Module PowerShellForGitHub " - $pulls = Get-GitHubPullRequest -OwnerName nkdAgility -RepositoryName azure-devops-migration-tools -State Closed -Base master + $pulls = Get-GitHubPullRequest -OwnerName nkdAgility -RepositoryName azure-devops-migration-tools -State Closed -Base main Write-Host "Found $($pulls.Count) pull requests on Preview" $pulls | ForEach-Object {Write-Host $_.title} Write-Host "----------" @@ -293,17 +297,16 @@ stages: gitHubConnection: 'GitHub connection 4' tagSource: userSpecifiedTag tag: 'v$(Build.BuildNumber)' - title: 'v$(Build.BuildNumber) - $(BUILD_SOURCEVERSIONMESSAGE)' + title: 'v$(Build.BuildNumber) - $(Build.SourceVersionMessage)' releaseNotesSource: inline releaseNotesInline: | $(prbody) - - $(BUILD_SOURCEVERSIONMESSAGE) for $(BUILD_SOURCEVERSIONAUTHOR) - assets: | + assets: | $(System.ArtifactsDirectory)/drop/*.zip $(System.ArtifactsDirectory)/drop/*.vsix $(System.ArtifactsDirectory)/drop/*.nupkg - changeLogType: issueBased + changeLogType: issueBased + - task: PowerShell@2 displayName: Create GitHub Release enabled: false @@ -374,7 +377,7 @@ stages: displayName: 'NuGet push' inputs: command: push - packagesToPush: '**\*vsts-sync-migrator.*.nupkg' + packagesToPush: '$(System.ArtifactsDirectory)\**\*vsts-sync-migrator.*.nupkg' nuGetFeedType: external publishFeedCredentials: Chocolate.org @@ -405,6 +408,6 @@ stages: - task: PowerShell@2 displayName: Create GitHub Release inputs: - filePath: '.\build\releaseGitHubRelease.ps1' + filePath: '.\build\releaseWingetPackage.ps1' arguments: '-version $(GitVersion.SemVer) -releaseTag $(releaseTag) -GH_TOKEN $(GH_TOKEN)' \ No newline at end of file