Skip to content

Commit cf6745e

Browse files
Move to site root
1 parent e2ed13e commit cf6745e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,17 @@ jobs:
4141
branch: master
4242
name_is_regexp: true
4343
name: ICSharpCode\.CodeConverter\.Web\..*\.zip
44-
path: site
44+
path: site-temp
45+
46+
- name: Move web files to site root
47+
if: ${{ inputs.deployWeb }}
48+
shell: pwsh
49+
run: |
50+
$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+
}
4555
4656
- name: Download release artifacts
4757
if: ${{ inputs.createRelease || inputs.publishNuget }}
@@ -52,7 +62,7 @@ jobs:
5262
name_is_regexp: true
5363
name: ICSharpCode\.CodeConverter.*\.(nupkg|vsix)$
5464
path: release-artifacts
55-
skip_unpack: true
65+
skip_unpack: false
5666

5767
- name: Extract build version from artifacts
5868
id: get_version

0 commit comments

Comments
 (0)