Skip to content

Commit 3e99f29

Browse files
Fix zip for Windows
1 parent af2a6cb commit 3e99f29

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/create-github-release.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ jobs:
5151
ZIP_NAME="jfiletreeprettyprinter-${VERSION}-${SAFE_OS_NAME}.zip"
5252
5353
cd dist
54-
tar -a -c -f "$ZIP_NAME" *
54+
if [[ "$SAFE_OS_NAME" == "windows" ]]; then
55+
powershell Compress-Archive -Path * -DestinationPath "$ZIP_NAME"
56+
else
57+
tar -a -c -f "$ZIP_NAME" *
58+
fi
5559
echo "zip_path=dist/$ZIP_NAME" >> $GITHUB_OUTPUT
5660
cd ..
5761
@@ -100,7 +104,7 @@ jobs:
100104
- name: Create GitHub Release
101105
uses: softprops/action-gh-release@v2
102106
with:
103-
name: "JFileTreePrettyPrinter v${{ github.ref_name }}"
107+
name: "JFileTreePrettyPrinter ${{ github.ref_name }}"
104108
body_path: ${{ steps.changelog.outputs.body_path }}
105109
files: release_zips/**/*.zip
106110
draft: true

0 commit comments

Comments
 (0)