From 2e6a7bdf95d0b4f0ec13b7927747ec9319499cb8 Mon Sep 17 00:00:00 2001 From: Kinin-Code-Offical <125186556+Kinin-Code-Offical@users.noreply.github.com> Date: Mon, 22 Dec 2025 05:36:31 +0300 Subject: [PATCH 1/2] feat(p2): add optional signing to release workflow --- .github/workflows/release.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 09883a8..9398bf3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,6 +24,21 @@ jobs: with: ref: ${{ env.RELEASE_TAG }} + - name: Prepare signing certificate + shell: pwsh + env: + CLOUDSQLCTL_SIGN_CERT_B64: ${{ secrets.CLOUDSQLCTL_SIGN_CERT_B64 }} + CLOUDSQLCTL_SIGN_PWD: ${{ secrets.CLOUDSQLCTL_SIGN_PWD }} + run: | + if (-not $env:CLOUDSQLCTL_SIGN_CERT_B64) { + Write-Host "Signing cert not provided; skipping signing setup." + exit 0 + } + $certPath = Join-Path $env:RUNNER_TEMP "cloudsqlctl-signing.pfx" + [IO.File]::WriteAllBytes($certPath, [Convert]::FromBase64String($env:CLOUDSQLCTL_SIGN_CERT_B64)) + "CLOUDSQLCTL_SIGN_CERT=$certPath" | Out-File -FilePath $env:GITHUB_ENV -Append + "CLOUDSQLCTL_SIGN_PWD=$env:CLOUDSQLCTL_SIGN_PWD" | Out-File -FilePath $env:GITHUB_ENV -Append + - name: Use Node.js 22.x uses: actions/setup-node@v4 with: @@ -54,6 +69,13 @@ jobs: - name: Build Installer run: npm run installer + - name: Sign artifacts + if: ${{ env.CLOUDSQLCTL_SIGN_CERT != '' }} + shell: pwsh + run: | + powershell -ExecutionPolicy Bypass -File tools/sign-exe.ps1 -ExePath "bin/cloudsqlctl.exe" + powershell -ExecutionPolicy Bypass -File tools/sign-exe.ps1 -ExePath "dist/cloudsqlctl-setup.exe" + - name: Generate Docs run: npm run docs:generate From 8f8c8ad3f2fb73c2d937cee412f693fcb4c24f83 Mon Sep 17 00:00:00 2001 From: Kinin-Code-Offical <125186556+Kinin-Code-Offical@users.noreply.github.com> Date: Mon, 22 Dec 2025 05:39:24 +0300 Subject: [PATCH 2/2] chore(p2): refresh commands docs --- docs/commands.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/commands.md b/docs/commands.md index fba815d..61021ba 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -1,6 +1,6 @@ # Cloud SQL Proxy CLI Reference -**Version:** 0.4.14 +**Version:** 0.4.15 **Generated:** 2025-12-22 ## Overview