Skip to content

Commit c3546ff

Browse files
Try to get the zipping level right for these different bits
1 parent 4b693b4 commit c3546ff

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
Remove-Item $subDir.FullName
5454
}
5555
56-
- name: Download release artifacts
56+
- name: Download NuGet and VSIX artifacts
5757
if: ${{ inputs.createRelease || inputs.publishNuget }}
5858
uses: dawidd6/action-download-artifact@v6
5959
with:
@@ -64,6 +64,26 @@ jobs:
6464
path: release-artifacts
6565
skip_unpack: false
6666

67+
- name: Download ZIP artifacts
68+
if: ${{ inputs.createRelease }}
69+
uses: dawidd6/action-download-artifact@v6
70+
with:
71+
workflow: dotnet.yml
72+
branch: master
73+
name_is_regexp: true
74+
name: ICSharpCode\.CodeConverter.*\.zip$
75+
path: release-artifacts
76+
skip_unpack: true
77+
78+
- name: Rename ZIP files
79+
if: ${{ inputs.createRelease }}
80+
shell: pwsh
81+
run: |
82+
Get-ChildItem -Path release-artifacts -Filter "*.zip.zip" | ForEach-Object {
83+
$newName = $_.Name -replace '\.zip\.zip$', '.zip'
84+
Rename-Item -Path $_.FullName -NewName $newName
85+
}
86+
6787
- name: Extract build version from artifacts
6888
id: get_version
6989
if: ${{ inputs.createRelease }}

0 commit comments

Comments
 (0)