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>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-11 20:17:05 +00:00
committed by GitHub
parent 7cfa69fe74
commit 07a2c6e5cd

View File

@@ -35,7 +35,7 @@ jobs:
discussions: write
steps:
- name: Check out repository code (Action from GitHub)
uses: actions/checkout@v6
uses: actions/checkout@v4
with:
fetch-depth: 0
@@ -101,6 +101,7 @@ jobs:
with:
path: build/cmder.zip
name: cmder.zip
archive: false
if-no-files-found: error
- name: Upload artifact (cmder.7z)
@@ -108,18 +109,21 @@ jobs:
with:
path: build/cmder.7z
name: cmder.7z
archive: false
- name: Upload artifact (cmder_mini.zip)
uses: actions/upload-artifact@v7
with:
path: build/cmder_mini.zip
name: cmder_mini.zip
archive: false
- name: Upload artifact (hashes.txt)
uses: actions/upload-artifact@v7
with:
path: build/hashes.txt
name: hashes.txt
archive: false
- name: Summary - Artifacts uploaded
if: success()