Skip to content

Commit 91f7a4b

Browse files
committed
ci: update build-executables.yml to simplify build and compression steps
1 parent 41a4d9e commit 91f7a4b

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

.github/workflows/build-executables.yml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,31 +32,32 @@ jobs:
3232

3333
# Step 4: Build Executables
3434
- name: Build
35-
run: dotnet publish -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true
35+
run: dotnet publish -c Release -r win-x64 --self-contained true
36+
# /p:PublishSingleFile=true
3637

3738
# Step 5: Compress to zip
3839
- name: Compress to zip
3940
run: |
40-
cd \a\x4_XMLDiffAndPatch\x4_XMLDiffAndPatch\XMLPatch\bin\Release\net8.0\win-x64\publish\
41+
cd \a\x4_XMLDiffAndPatch\x4_XMLDiffAndPatch\XMLPatch\bin\Release\net8.0\win-x64\
4142
Get-ChildItem -Path . -Recurse | Select-Object FullName, Length, LastWriteTime
42-
cd \a\x4_XMLDiffAndPatch\x4_XMLDiffAndPatch\XMLDiff\bin\Release\net8.0\win-x64\publish\
43+
cd \a\x4_XMLDiffAndPatch\x4_XMLDiffAndPatch\XMLDiff\bin\Release\net8.0\win-x64\
4344
Get-ChildItem -Path . -Recurse | Select-Object FullName, Length, LastWriteTime
4445
cd \a\x4_XMLDiffAndPatch\x4_XMLDiffAndPatch\
45-
mkdir -p XMLDiffAndPatch
46-
cp -r XMLPatch\bin\Release\net8.0\win-x64\publish\XMLPatch.exe XMLDiffAndPatch
47-
cp -r XMLDiff\bin\Release\net8.0\win-x64\publish\XMLDiff.exe XMLDiffAndPatch
48-
7z a -tzip XMLDiffAndPatch.zip XMLDiffAndPatch
46+
# mkdir -p XMLDiffAndPatch
47+
# cp -r XMLPatch\bin\Release\net8.0\win-x64\publish\XMLPatch.exe XMLDiffAndPatch
48+
# cp -r XMLDiff\bin\Release\net8.0\win-x64\publish\XMLDiff.exe XMLDiffAndPatch
49+
# 7z a -tzip XMLDiffAndPatch.zip XMLDiffAndPatch
4950
shell: powershell
5051

51-
# # Step 6: Upload Diff and Patch Archive as Artifact
52-
- name: Upload Diff and Patch Archive as Artifact
53-
uses: actions/upload-artifact@v4
54-
with:
55-
name: executables-archive
56-
path: |
57-
XMLDiffAndPatch.zip
58-
env:
59-
GITHUB_TOKEN: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
52+
# # # Step 6: Upload Diff and Patch Archive as Artifact
53+
# - name: Upload Diff and Patch Archive as Artifact
54+
# uses: actions/upload-artifact@v4
55+
# with:
56+
# name: executables-archive
57+
# path: |
58+
# XMLDiffAndPatch.zip
59+
# env:
60+
# GITHUB_TOKEN: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
6061

6162
# Step 10: Scan with VirusTotal
6263
# -

0 commit comments

Comments
 (0)