Skip to content

Commit 53eaa05

Browse files
qdotclaude
andcommitted
fix(ci): don't use .zip in artifact names
download-artifact creates directories named after the artifact. When the name ends in .zip, the zip command tries to read the directory as an existing archive and fails. Use .zip-free artifact names and append the extension during the zip step. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c45b163 commit 53eaa05

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/release-engine.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ jobs:
1717
platform: linux
1818
arch: x64
1919
exe: intiface-engine
20-
zip: intiface-engine-linux-x64-Release.zip
20+
artifact: intiface-engine-linux-x64-Release
2121

2222
- runner: ubuntu-24.04-arm
2323
platform: linux
2424
arch: arm64
2525
exe: intiface-engine
26-
zip: intiface-engine-linux-arm64-Release.zip
26+
artifact: intiface-engine-linux-arm64-Release
2727

2828
- runner: windows-latest
2929
platform: win
3030
arch: x64
3131
exe: intiface-engine.exe
32-
zip: intiface-engine-win-x64-Release.zip
32+
artifact: intiface-engine-win-x64-Release
3333

3434
- runner: macos-latest
3535
platform: macos
3636
arch: arm64
3737
exe: intiface-engine
38-
zip: intiface-engine-macos-arm64-Release.zip
38+
artifact: intiface-engine-macos-arm64-Release
3939

4040
steps:
4141
- uses: actions/checkout@v4
@@ -68,7 +68,7 @@ jobs:
6868
- name: Upload artifact
6969
uses: actions/upload-artifact@v4
7070
with:
71-
name: ${{ matrix.zip }}
71+
name: ${{ matrix.artifact }}
7272
path: staging/
7373

7474
release:
@@ -89,7 +89,7 @@ jobs:
8989
run: |
9090
cd artifacts
9191
for dir in */; do
92-
zip_name="${dir%/}"
92+
zip_name="${dir%/}.zip"
9393
(cd "$dir" && zip -j "../${zip_name}" *)
9494
done
9595
ls -la *.zip

0 commit comments

Comments
 (0)