Skip to content

Commit 7ae9998

Browse files
authored
fix win release (#184)
1 parent 3326b9c commit 7ae9998

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,18 @@ jobs:
115115
- name: Package
116116
if: startsWith(github.ref, 'refs/tags/')
117117
run: |
118+
$outputDir = "$env:GITHUB_WORKSPACE\artifacts"
119+
New-Item -ItemType Directory -Path $outputDir -Force
118120
mkdir libsimple-windows-${{ matrix.arch }}
119121
Copy-Item -Path src/${{ steps.build_type.outputs.BUILD_TYPE }}/simple.dll,cppjieba/src/cppjieba/dict/ -Destination libsimple-windows-${{ matrix.arch }}/ -Recurse
120-
Compress-Archive -Path libsimple-windows-${{ matrix.arch }} -DestinationPath libsimple-windows-${{ matrix.arch }}.zip
122+
Compress-Archive -Path libsimple-windows-${{ matrix.arch }} -DestinationPath "$outputDir\libsimple-windows-${{ matrix.arch }}.zip"
121123
working-directory: "${{ github.workspace }}/../../_temp/windows/"
122124
- name: Release
123125
if: startsWith(github.ref, 'refs/tags/')
124126
uses: softprops/action-gh-release@v2
125127
with:
126128
draft: true
127-
files: "${{ github.workspace }}/../../_temp/windows/libsimple-windows-${{ matrix.arch }}.zip"
129+
files: "${{ github.workspace }}/artifacts/libsimple-windows-${{ matrix.arch }}.zip"
128130
env:
129131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
130132
BUILD_TYPE: ${{ github.ref_type == 'tag' && 'Release' || 'Debug' }}

0 commit comments

Comments
 (0)