diff --git a/.github/workflows/windows-mingw.yml b/.github/workflows/windows-mingw.yml index d91a9d77..3c484273 100644 --- a/.github/workflows/windows-mingw.yml +++ b/.github/workflows/windows-mingw.yml @@ -85,7 +85,7 @@ jobs: - uses: actions/upload-artifact@v2 with: name: ${{ steps.package.outputs.packageName }} - path: ${{ steps.package.outputs.packageName }} + path: dist - name: uploadRelease if: startsWith(github.event.ref, 'refs/tags/') diff --git a/.github/workflows/windows-qt5.yml b/.github/workflows/windows-qt5.yml index d73d466b..9c0fa445 100644 --- a/.github/workflows/windows-qt5.yml +++ b/.github/workflows/windows-qt5.yml @@ -72,7 +72,7 @@ jobs: - uses: actions/upload-artifact@v2 with: name: ${{ steps.package.outputs.packageName }} - path: ${{ steps.package.outputs.packageName }} + path: dist - name: uploadRelease if: startsWith(github.event.ref, 'refs/tags/') diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 3f59540b..cdbeb16d 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -74,7 +74,7 @@ jobs: - uses: actions/upload-artifact@v2 with: name: ${{ steps.package.outputs.packageName }} - path: ${{ steps.package.outputs.packageName }} + path: dist - name: inno setup install if: startsWith(github.event.ref, 'refs/tags/') diff --git a/scripts/windows-mingw-publish.ps1 b/scripts/windows-mingw-publish.ps1 index b5c90b01..861a83d8 100644 --- a/scripts/windows-mingw-publish.ps1 +++ b/scripts/windows-mingw-publish.ps1 @@ -22,7 +22,7 @@ function Main() { windeployqt --qmldir . --plugindir dist\plugins --no-translations --compiler-runtime dist\$targetName # 删除不必要的文件 $excludeList = @("*.qmlc", "*.ilk", "*.exp", "*.lib", "*.pdb") - Remove-Item -Path $archiveName -Include $excludeList -Recurse -Force + Remove-Item -Path dist -Include $excludeList -Recurse -Force # 打包zip Compress-Archive -Path dist $archiveName'.zip' }