Skip to content

Commit

Permalink
[main] Fixes/build other branches (#2108)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHinsh authored Jun 22, 2024
1 parent cd18fee commit 7e98ef4
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions build/azure-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

trigger:
- main
- releases/*

pr:
- main

name: $(GITVERSION_SemVer)

Expand Down Expand Up @@ -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 "----------"
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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)'

0 comments on commit 7e98ef4

Please sign in to comment.