DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
fix(ci): serialize release asset publishing
hairyf58485454b121
diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.ymlindex c9255041..55085e8f 100644--- a/.github/workflows/build-linux.yml+++ b/.github/workflows/build-linux.yml@@ -36,12 +36,17 @@ jobs:# 22.04 的 glibc/WebKitGTK 产物兼容 Ubuntu 22.04 及更新版本。runs-on: ubuntu-22.04timeout-minutes: 60+ # 三个平台共享同一 Release 和 latest.json,必须避免 tauri-action 并发写入。+ concurrency:+ group: release-assets-${{ inputs.release_tag || format('test-{0}-{1}', inputs.source_name, github.run_number) }}+ cancel-in-progress: falsesteps:- name: Checkout repositoryuses: actions/checkout@v7with:ref: ${{ inputs.source_ref }}fetch-depth: 0+ persist-credentials: false- name: Setup Node.js and pnpmuses: ./.github/actions/setup-node-pnpm@@ -80,20 +85,19 @@ jobs:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}- TAURI_BUNDLE_TARGETS: appimage,debwith:tagName: ${{ inputs.release_tag }}releaseName: 'DeepSeek Harness Desktop ${{ inputs.release_tag }}'releaseDraft: falseprerelease: ${{ inputs.prerelease }}includeUpdaterJson: true+ args: --bundles appimage,deb- name: Build and Create Test Releaseif: inputs.test_releaseuses: tauri-apps/tauri-action@v0env:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- TAURI_BUNDLE_TARGETS: appimage,debwith:tagName: ${{ format('test-{0}-{1}', inputs.source_name, github.run_number) }}releaseName: 'DeepSeek Harness Desktop 手动测试版 (构建 #${{ github.run_number }})'@@ -102,6 +106,7 @@ jobs:触发来源: `${{ inputs.source_name }}`打包平台: `linux`prerelease: true+ args: --bundles appimage,deb- name: Upload Artifacts (Manual Trigger)if: inputs.test_releasediff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.ymlindex 463b04e6..948f42be 100644--- a/.github/workflows/build-macos.yml+++ b/.github/workflows/build-macos.yml@@ -59,6 +59,10 @@ jobs:rust-target: x86_64-apple-darwinruns-on: macos-latesttimeout-minutes: 60+ # matrix 架构及其他平台共享同一 Release 和 latest.json,串行执行写入步骤。+ concurrency:+ group: release-assets-${{ inputs.release_tag || format('test-{0}-{1}', inputs.source_name, github.run_number) }}+ cancel-in-progress: falsesteps:- name: Filter target architectureid: check@@ -80,6 +84,7 @@ jobs:with:ref: ${{ inputs.source_ref }}fetch-depth: 0+ persist-credentials: false- name: Setup Node.js and pnpmif: steps.check.outputs.should_run == 'true'@@ -173,5 +178,6 @@ jobs:uses: actions/upload-artifact@v6with:name: deepseek-harness-desktop-${{ matrix.id }}- path: src-tauri/target/release/bundle/dmg/*.dmg+ path: src-tauri/target/${{ matrix.rust-target }}/release/bundle/dmg/*.dmg+ if-no-files-found: errorretention-days: 7diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.ymlindex afc5bd94..3e974bd3 100644--- a/.github/workflows/build-windows.yml+++ b/.github/workflows/build-windows.yml@@ -35,12 +35,17 @@ jobs:name: Build (windows)runs-on: windows-latesttimeout-minutes: 60+ # 三个平台共享同一 Release 和 latest.json,必须避免 tauri-action 并发写入。+ concurrency:+ group: release-assets-${{ inputs.release_tag || format('test-{0}-{1}', inputs.source_name, github.run_number) }}+ cancel-in-progress: falsesteps:- name: Checkout repositoryuses: actions/checkout@v7with:ref: ${{ inputs.source_ref }}fetch-depth: 0+ persist-credentials: false- name: Setup Node.js and pnpmuses: ./.github/actions/setup-node-pnpmdiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 26174ab8..87d497d2 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -113,7 +113,7 @@ jobs:# 使用 lockfile 固定的 changelogithub,避免带写权限 token 时动态执行 registry 包。- name: Install changelog dependenciesif: steps.meta.outputs.should_release == 'true'- run: pnpm install --frozen-lockfile+ run: pnpm install --frozen-lockfile --ignore-scripts- name: Sync git tag and generate changelogif: steps.meta.outputs.should_release == 'true'@@ -158,7 +158,14 @@ jobs:platform_filter: ${{ github.event_name == 'workflow_dispatch' && inputs.platform_filter || 'all' }}source_ref: ${{ needs.prepare.outputs.source_ref }}source_name: ${{ github.ref_name }}- secrets: inherit+ secrets:+ TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}+ TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}+ APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}+ APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}+ APPLE_ID: ${{ secrets.APPLE_ID }}+ APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}+ APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}publish-windows:name: Build Windows Artifacts@@ -175,7 +182,9 @@ jobs:test_release: ${{ github.event_name == 'workflow_dispatch' }}source_ref: ${{ needs.prepare.outputs.source_ref }}source_name: ${{ github.ref_name }}- secrets: inherit+ secrets:+ TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}+ TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}publish-linux:name: Build Linux Artifacts@@ -192,4 +201,6 @@ jobs:test_release: ${{ github.event_name == 'workflow_dispatch' }}source_ref: ${{ needs.prepare.outputs.source_ref }}source_name: ${{ github.ref_name }}- secrets: inherit+ secrets:+ TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}+ TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}