Skip to content

Commit 560c8e0

Browse files
workflow updated
1 parent 9f5134e commit 560c8e0

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/publish-singlefile.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,19 @@ jobs:
4545
shell: pwsh
4646
run: Remove-Item artifacts\${{ matrix.rid }}\*.pdb -Force
4747

48-
- name: Zip artifact
48+
- name: Zip artifact (Linux)
49+
if: runner.os == 'Linux'
4950
run: |
5051
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
5661
5762
- name: Upload Build Artifact
5863
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)