Skip to content

Commit 2ae7905

Browse files
committed
ci: update build-executables.yml to compress output files into a zip archive
1 parent 76fe93e commit 2ae7905

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/build-executables.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ jobs:
3434
- name: Build
3535
run: dotnet publish -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true
3636

37-
# Step 5: Check local files
38-
- name: Check local files
39-
if: ${{ github.event_name != 'release' }}
37+
# Step 5: Compress to zip
38+
- name: Compress to zip
4039
run: |
41-
Get-ChildItem -Path XMLPatch -Recurse | Select-Object FullName, Length, LastWriteTime
42-
Get-ChildItem -Path XMLDiff -Recurse | Select-Object FullName, Length, LastWriteTime
40+
mkdir -p XMLDiffAndPatch
41+
cp -r XMLPatch\bin\Release\net8.0\win-x64\XMLPatch.exe XMLDiffAndPatch
42+
cp -r XMLDiff\bin\Release\net8.0\win-x64\XMLDiff.exe XMLDiffAndPatch
43+
7z a -tzip XMLDiffAndPatch.zip XMLDiffAndPatch
4344
shell: powershell
4445

4546

0 commit comments

Comments
 (0)