Skip to content

Commit cfb9db6

Browse files
authored
Merge pull request #203 from ghost1372/copilot/fix-checks-in-devwinui
Fix VSIX marketplace publish file path in workflow
2 parents f592321 + d68ce50 commit cfb9db6

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/vsix-release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,20 @@ jobs:
3030
- name: Build
3131
run: msbuild /p:Configuration=Release
3232

33+
- name: Resolve VSIX file path
34+
shell: pwsh
35+
run: |
36+
$vsixFile = Get-ChildItem -Path VSIX -Filter *.vsix -Recurse | Select-Object -First 1 -ExpandProperty FullName
37+
if (-not $vsixFile) {
38+
Write-Host "::error::No VSIX file was produced by the build."
39+
exit 1
40+
}
41+
Write-Host "VSIX file: $vsixFile"
42+
"VSIX_FILE=$vsixFile" | Out-File -FilePath $env:GITHUB_ENV -Append
43+
3344
- name: Publish to Marketplace
3445
uses: madskristensen/publish-marketplace@v2
3546
with:
36-
extension-file: '**/*.vsix'
47+
extension-file: ${{ env.VSIX_FILE }}
3748
publish-manifest-file: vs-publish.json
3849
personal-access-code: ${{ secrets.VS_MARKETPLACE_TOKEN }}

0 commit comments

Comments
 (0)