From f761e5530f92e4ad49b452b1ca76a2f03de2f62c Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Mon, 4 May 2026 21:37:27 +0800 Subject: [PATCH] fix: read signing key from file into GITHUB_ENV to preserve newlines --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a91aff423..3321fd204c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -86,6 +86,7 @@ jobs: run: | mkdir -p ~/.tauri echo "${{ secrets.TAURI_SIGNING_PRIVATE_KEY_BASE64 }}" | base64 --decode > ~/.tauri/dbx.key + echo "TAURI_SIGNING_PRIVATE_KEY=$(cat ~/.tauri/dbx.key)" >> "$GITHUB_ENV" - name: Build Tauri app uses: tauri-apps/tauri-action@v0 @@ -95,7 +96,6 @@ jobs: APPLE_ID: ${{ startsWith(matrix.platform, 'macos') && secrets.APPLE_ID || '' }} APPLE_PASSWORD: ${{ startsWith(matrix.platform, 'macos') && secrets.APPLE_PASSWORD || '' }} APPLE_TEAM_ID: ${{ startsWith(matrix.platform, 'macos') && secrets.APPLE_TEAM_ID || '' }} - TAURI_SIGNING_PRIVATE_KEY: ~/.tauri/dbx.key TAURI_SIGNING_PRIVATE_KEY_PASSWORD: "" with: tagName: ${{ github.ref_name }}