Skip to content

Commit 07a2c6e

Browse files
fix: correct checkout to v4 and add archive: false to fix double-zip
- actions/checkout@v6 does not exist; correct to @v4 - Add archive: false to all actions/upload-artifact@v7 steps so .zip and .7z files are uploaded directly without being wrapped in an extra zip container (fixes the double-zip problem described in #2725 and #2805) Agent-Logs-Url: https://github.com/cmderdev/cmder/sessions/1d806690-a6f7-49d1-bef5-cefe50fc371e Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
1 parent 7cfa69f commit 07a2c6e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
discussions: write
3636
steps:
3737
- name: Check out repository code (Action from GitHub)
38-
uses: actions/checkout@v6
38+
uses: actions/checkout@v4
3939
with:
4040
fetch-depth: 0
4141

@@ -101,25 +101,29 @@ jobs:
101101
with:
102102
path: build/cmder.zip
103103
name: cmder.zip
104+
archive: false
104105
if-no-files-found: error
105106

106107
- name: Upload artifact (cmder.7z)
107108
uses: actions/upload-artifact@v7
108109
with:
109110
path: build/cmder.7z
110111
name: cmder.7z
112+
archive: false
111113

112114
- name: Upload artifact (cmder_mini.zip)
113115
uses: actions/upload-artifact@v7
114116
with:
115117
path: build/cmder_mini.zip
116118
name: cmder_mini.zip
119+
archive: false
117120

118121
- name: Upload artifact (hashes.txt)
119122
uses: actions/upload-artifact@v7
120123
with:
121124
path: build/hashes.txt
122125
name: hashes.txt
126+
archive: false
123127

124128
- name: Summary - Artifacts uploaded
125129
if: success()

0 commit comments

Comments
 (0)