Skip to content

Commit 96bea22

Browse files
Merge pull request #322 from microsoft/rajeev-move-components-to-release
Add logic to include Artifacts folder files in GitHub releases
2 parents b812a62 + 8621986 commit 96bea22

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.

CopilotstudioAcceleratorResources/Release/Pipelines/CopilotstudioAccelerator/create-github-release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,27 @@ steps:
8282
Write-Host "Conversation.KPIs.zip not found. Skipping."
8383
}
8484
85+
# Copy all files from Artifacts folder to release assets
86+
Write-Host "Checking for files in the /Release/Artifacts/ folder..."
87+
$artifactsFolder = "$(Build.SourcesDirectory)\Power-CAT-Copilot-Studio-Kit\CopilotstudioAcceleratorResources\Release\Artifacts\"
88+
89+
if (Test-Path $artifactsFolder) {
90+
Write-Host "Artifacts folder found. Copying all files to releaseassets..."
91+
$artifactFiles = Get-ChildItem -Path $artifactsFolder -File -Recurse
92+
93+
if ($artifactFiles) {
94+
foreach ($file in $artifactFiles) {
95+
Write-Host "Copying artifact file: $($file.Name)"
96+
Copy-Item -Path $file.FullName -Destination "$(Pipeline.Workspace)\releaseassets" -Force
97+
}
98+
Write-Host "Successfully copied $($artifactFiles.Count) artifact file(s) to release assets."
99+
} else {
100+
Write-Host "Artifacts folder is empty. No files to copy."
101+
}
102+
} else {
103+
Write-Host "Artifacts folder not found at: $artifactsFolder. Skipping artifact file copying."
104+
}
105+
85106
<#
86107
# Compress to CopilotStudioKit.zip
87108
Write-Host "Creating CopilotStudioKit.zip (Managed + Collateral)..."

0 commit comments

Comments
 (0)