Skip to content

Commit cdd7c36

Browse files
committed
Remove double-zip: upload directory as artifact, create single zip only for release
1 parent 0ceba12 commit cdd7c36

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,16 +133,11 @@ jobs:
133133
dir bin
134134
dir engines
135135
136-
- name: Create Windows ZIP
137-
run: |
138-
cd install
139-
Compress-Archive -Path * -DestinationPath ${{ github.workspace }}/scidCommunity-windows-x64.zip
140-
141136
- name: Upload Windows artifact
142137
uses: actions/upload-artifact@v5
143138
with:
144139
name: scidCommunity-windows-x64
145-
path: scidCommunity-windows-x64.zip
140+
path: install/
146141

147142
build-linux-deb:
148143
runs-on: ubuntu-latest
@@ -421,11 +416,18 @@ jobs:
421416
with:
422417
path: artifacts
423418

419+
- name: Create Windows ZIP for release
420+
run: |
421+
cd artifacts/scidCommunity-windows-x64
422+
zip -r ../../scidCommunity-windows-x64.zip .
423+
cd ../..
424+
mv scidCommunity-windows-x64.zip artifacts/
425+
424426
- name: Create Release
425427
uses: softprops/action-gh-release@v2
426428
with:
427429
files: |
428-
artifacts/scidCommunity-windows-x64/*.zip
430+
artifacts/scidCommunity-windows-x64.zip
429431
artifacts/scidCommunity-ubuntu-deb/*.deb
430432
artifacts/scidCommunity-linux-rpm/*.rpm
431433
artifacts/scidCommunity-linux-appimage/*.AppImage

0 commit comments

Comments
 (0)