File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,14 @@ jobs:
4343 name : ICSharpCode\.CodeConverter\.Web\..*\.zip
4444 path : site-temp
4545
46- - name : Move web files to site root
46+ - name : Get web folder name
4747 if : ${{ inputs.deployWeb }}
48+ id : web_folder
4849 shell : pwsh
4950 run : |
5051 $subDir = Get-ChildItem -Path site-temp -Directory | Select-Object -First 1
51- if ($subDir) {
52- Move-Item -Path "$($subDir.FullName)/*" -Destination site/
53- Remove-Item $subDir.FullName
54- }
52+ $path = if ($subDir) { "site-temp/$($subDir.Name)" } else { "site-temp" }
53+ Write-Output "path=$path" >> $env:GITHUB_OUTPUT
5554
5655 - name : Download NuGet and VSIX artifacts
5756 if : ${{ inputs.createRelease || inputs.publishNuget }}
@@ -109,7 +108,7 @@ jobs:
109108 uses : JamesIves/github-pages-deploy-action@v4
110109 with :
111110 branch : ' autoupdated/gh-pages'
112- folder : ' site '
111+ folder : ${{ steps.web_folder.outputs.path }}
113112
114113 - name : Publish NuGet packages
115114 if : ${{ inputs.publishNuget }}
You can’t perform that action at this time.
0 commit comments