Skip to content

Commit 2194209

Browse files
committed
Update windows workflow
1 parent 583ce03 commit 2194209

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ jobs:
8181
cd release
8282
tar czf ../${{ matrix.asset_name }} .
8383
cd ..
84-
8584
- name: Prepare release archive (Windows)
8685
if: matrix.os == 'windows-latest'
8786
run: |
8887
mkdir release
89-
cp target/${{ matrix.target }}/release/${{ matrix.artifact_name }} release/
90-
cp README.md LICENSE release/
91-
Compress-Archive -Path release/* -DestinationPath ${{ matrix.asset_name }}
88+
Copy-Item "target\${{ matrix.target }}\release\${{ matrix.artifact_name }}" -Destination "release\"
89+
if (Test-Path "README.md") { Copy-Item "README.md" -Destination "release\" }
90+
if (Test-Path "LICENSE") { Copy-Item "LICENSE" -Destination "release\" }
91+
Compress-Archive -Path "release\*" -DestinationPath "${{ matrix.asset_name }}"
9292
9393
- name: Upload Release Asset
9494
env:

0 commit comments

Comments
 (0)