diff --git a/.github/workflows/multiOSReleases.yml b/.github/workflows/multiOSReleases.yml index 89f56158a1..0625cf90d2 100644 --- a/.github/workflows/multiOSReleases.yml +++ b/.github/workflows/multiOSReleases.yml @@ -440,7 +440,7 @@ jobs: - name: Generate temporary GPG key for AppImage if: matrix.platform == 'ubuntu-22.04' && matrix.name == 'linux-x86_64-appimage' run: | - cat >keyparams <<'EOF' + cat >keyparams <> $GITHUB_ENV echo "Generated temporary GPG key:" gpg --list-secret-keys --keyid-format=long @@ -476,6 +478,15 @@ jobs: tauriScript: npx tauri args: ${{ matrix.args }} + - name: Cleanup temporary GPG key + if: matrix.platform == 'ubuntu-22.04' && matrix.name == 'linux-x86_64-appimage' + run: | + if [ -n "${GPG_FINGERPRINT:-}" ]; then + gpg --batch --yes --delete-secret-keys "$GPG_FINGERPRINT" || true + gpg --batch --yes --delete-keys "$GPG_FINGERPRINT" || true + fi + rm -f keyparams + # Sign with DigiCert KeyLocker (post-build) - name: Sign Windows binaries with DigiCert KeyLocker if: ${{ matrix.platform == 'windows-latest' && env.SM_API_KEY != '' && (github.event_name == 'release' || github.ref == 'refs/heads/V2-master') }}