Skip to content

Commit 09d1d4a

Browse files
Juarez Rudsatzjuarezr
Juarez Rudsatz
authored andcommitted
fix(ci): fix zip package for windows in release workflow
1 parent 7100151 commit 09d1d4a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/build-release.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,6 @@ jobs:
122122
shell: bash
123123
run: tar --directory=${{ env.TARGET_DIR }} -czvf ${{ env.ARTIFACT_DIR }}/${{ env.ARTIFACT_NAME }}.tar.gz solrcopy
124124

125-
- name: Make a Windows zip package
126-
if: matrix.platform == 'windows'
127-
shell: bash
128-
run: |
129-
ls -lshFGHL ${{ env.TARGET_DIR }}
130-
zip -j ${{ env.ARTIFACT_DIR }}/${{ env.ARTIFACT_NAME }}.zip ${{ env.TARGET_DIR }}/solrcopy.exe
131-
132125
- name: Make the debian package
133126
if: matrix.platform == 'linux'
134127
shell: bash
@@ -139,6 +132,14 @@ jobs:
139132
shell: bash
140133
run: cargo generate-rpm --profile release --output ${{ env.ARTIFACT_DIR }}/${{ env.ARTIFACT_NAME }}.rpm
141134

135+
- name: Make a Windows zip package
136+
if: matrix.platform == 'windows'
137+
shell: bash
138+
run: |
139+
ls -lshFGHL ${{ env.TARGET_DIR }}
140+
# zip -j ${{ env.ARTIFACT_DIR }}/${{ env.ARTIFACT_NAME }}.zip ${{ env.TARGET_DIR }}/solrcopy.exe
141+
7z a -y -tzip ${{ env.ARTIFACT_DIR }}/${{ env.ARTIFACT_NAME }}.zip ${{ env.TARGET_DIR }}/solrcopy.exe
142+
142143
# endregion
143144

144145
# region Upload Artifact

0 commit comments

Comments
 (0)