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