Skip to content

Commit 1ff4190

Browse files
committed
ci: use pwsh to make Windows packages instead of bash
Signed-off-by: leo <longshuang@msn.cn>
1 parent 0acff99 commit 1ff4190

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

.github/workflows/package.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ jobs:
2222
name: sourcegit.${{ matrix.runtime }}
2323
path: build/SourceGit
2424
- name: Package
25-
shell: bash
25+
shell: pwsh
2626
env:
2727
VERSION: ${{ inputs.version }}
2828
RUNTIME: ${{ matrix.runtime }}
29-
run: ./build/scripts/package.windows.sh
29+
run: |
30+
Remove-Item -Path build\SourceGit\*.pdb -Force
31+
Compress-Archive -Path build\SourceGit -DestinationPath "sourcegit_${env:VERSION}.${env:RUNTIME}.zip" -Force
3032
- name: Upload package artifact
3133
uses: actions/upload-artifact@v4
3234
with:

build/scripts/package.windows.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)