diff --git a/.github/scripts/windows-publish.ps1 b/.github/scripts/windows-publish.ps1 index b49ed4d0..566bbda3 100644 --- a/.github/scripts/windows-publish.ps1 +++ b/.github/scripts/windows-publish.ps1 @@ -32,9 +32,9 @@ function Main() { Copy-Item release\$targetName $archiveName\ Write-Host "copy item finished..." - #拷贝pdb - Copy-Item release\*.pdb $archiveName\ - Write-Host "copy pdb finished..." + # #拷贝pdb + # Copy-Item release\*.pdb $archiveName\ + # Write-Host "copy pdb finished..." # 拷贝依赖 windeployqt --qmldir . --plugindir $archiveName\plugins --compiler-runtime $archiveName\$targetName # 删除不必要的文件 diff --git a/.github/workflows/windows-6.x-xapian.yml b/.github/workflows/windows-6.x-xapian.yml index 52892659..c07b8462 100644 --- a/.github/workflows/windows-6.x-xapian.yml +++ b/.github/workflows/windows-6.x-xapian.yml @@ -125,10 +125,6 @@ jobs: $name = ${env:archiveName} echo "::set-output name=packageName::$name" -# - uses: actions/upload-artifact@v2 -# with: -# name: ${{ steps.package.outputs.packageName }} -# path: ${{ steps.package.outputs.packageName }}.zip - name: uploadRelease # if: startsWith(github.event.ref, 'refs/tags/') uses: svenstaro/upload-release-action@v2 @@ -177,6 +173,17 @@ jobs: release_name: GoldenDict-ng-v${{env.version}}-${{env.version-suffix}}.${{ steps.vars.outputs.release_hm }}.${{ steps.vars.outputs.sha_short }} prerelease: ${{env.prerelease}} + - name: upload pdb + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: release/GoldenDict.pdb + asset_name: ${{ matrix.qt_ver }}.${{ matrix.os }}-xapian-GoldenDict.pdb + tag: v${{env.version}}-${{env.version-suffix}}.${{ steps.vars.outputs.release_hm }}.${{ steps.vars.outputs.sha_short }} + overwrite: true + release_name: GoldenDict-ng-v${{env.version}}-${{env.version-suffix}}.${{ steps.vars.outputs.release_hm }}.${{ steps.vars.outputs.sha_short }} + prerelease: ${{env.prerelease}} + - name: copy nsis shell: bash run: |