Skip to content

Commit

Permalink
fix(ci): fix zip package for windows in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Juarez Rudsatz committed Sep 24, 2024
1 parent 7100151 commit e22afda
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,6 @@ jobs:
shell: bash
run: tar --directory=${{ env.TARGET_DIR }} -czvf ${{ env.ARTIFACT_DIR }}/${{ env.ARTIFACT_NAME }}.tar.gz solrcopy

- name: Make a Windows zip package
if: matrix.platform == 'windows'
shell: bash
run: |
ls -lshFGHL ${{ env.TARGET_DIR }}
zip -j ${{ env.ARTIFACT_DIR }}/${{ env.ARTIFACT_NAME }}.zip ${{ env.TARGET_DIR }}/solrcopy.exe
- name: Make the debian package
if: matrix.platform == 'linux'
shell: bash
Expand All @@ -139,6 +132,14 @@ jobs:
shell: bash
run: cargo generate-rpm --profile release --output ${{ env.ARTIFACT_DIR }}/${{ env.ARTIFACT_NAME }}.rpm

- name: Make a Windows zip package
if: matrix.platform == 'windows'
shell: bash
run: |
ls -lshFGHL ${{ env.TARGET_DIR }}
# zip -j ${{ env.ARTIFACT_DIR }}/${{ env.ARTIFACT_NAME }}.zip ${{ env.TARGET_DIR }}/solrcopy.exe
7z a -y -tzip ${{ env.ARTIFACT_DIR }}/${{ env.ARTIFACT_NAME }}.zip ${{ env.TARGET_DIR }}/solrcopy.exe
# endregion

# region Upload Artifact
Expand Down

0 comments on commit e22afda

Please sign in to comment.