Skip to content

Commit

Permalink
fixed zip issue
Browse files Browse the repository at this point in the history
  • Loading branch information
drkameleon committed May 22, 2024
1 parent db8f35d commit 01b735f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,13 @@ runs:
cp ${{ env.EXEFILE }} $FILENAME
fi
if [ "${{ inputs.release }}" = "true" ]; then
zip -r $FILENAME.zip $FILENAME
if [ "${{ runner.os }}" = "Windows" ]; then
7z a $FILENAME.zip $FILENAME
else
zip -r $FILENAME.zip $FILENAME
fi
fi
shell: bash
shell: ${{ runner.os == 'Windows' && 'msys2 {0}' || 'bash' }}

- name: Upload Artifact
uses: 'actions/upload-artifact@v4'
Expand Down

0 comments on commit 01b735f

Please sign in to comment.