File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,19 @@ jobs:
45
45
shell : pwsh
46
46
run : Remove-Item artifacts\${{ matrix.rid }}\*.pdb -Force
47
47
48
- - name : Zip artifact
48
+ - name : Zip artifact (Linux)
49
+ if : runner.os == 'Linux'
49
50
run : |
50
51
cd artifacts
51
- if [[ "${{ runner.os }}" == "Linux" ]]; then
52
- zip -r ${{ matrix.rid }}.zip ${{ matrix.rid }}
53
- else
54
- Compress-Archive -Path ${{ matrix.rid }}\* -DestinationPath ${{ matrix.rid }}.zip
55
- fi
52
+ zip -r ${{ matrix.rid }}.zip ${{ matrix.rid }}
53
+
54
+ - name : Zip artifact (Windows)
55
+ if : runner.os == 'Windows'
56
+ shell : pwsh
57
+ run : |
58
+ Push-Location artifacts
59
+ Compress-Archive -Path ${{ matrix.rid }}\* -DestinationPath ${{ matrix.rid }}.zip
60
+ Pop-Location
56
61
57
62
- name : Upload Build Artifact
58
63
uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments