File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments