2 parents f592321 + d68ce50 commit cfb9db6Copy full SHA for cfb9db6
1 file changed
.github/workflows/vsix-release.yml
@@ -30,9 +30,20 @@ jobs:
30
- name: Build
31
run: msbuild /p:Configuration=Release
32
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
+
44
- name: Publish to Marketplace
45
uses: madskristensen/publish-marketplace@v2
46
with:
- extension-file: '**/*.vsix'
47
+ extension-file: ${{ env.VSIX_FILE }}
48
publish-manifest-file: vs-publish.json
49
personal-access-code: ${{ secrets.VS_MARKETPLACE_TOKEN }}
0 commit comments