Skip to content

Commit

Permalink
test another method for client cert setup
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbuks committed Jul 1, 2024
1 parent 1443c56 commit 31184c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,12 @@ jobs:
# - name: release/test
# uses: ./.github/actions/test
- name: release/setup-cert
shell: powershell
run: |
echo "${{ secrets.SM_CLIENT_CERT_FILE_B64 }}" | base64 --decode > /d/Certificate_pkcs12.p12
echo "SM_CLIENT_CERT_FILE=D:\\Certificate_pkcs12.p12" >> "$GITHUB_ENV"
shell: bash
New-Item $Profile.CurrentUserAllHosts -Force
$SM_CLIENT_CERT_FILE=(Join-Path -Path (Resolve-Path .\).Path -ChildPath "cert.p12")
Add-Content -Path $Profile.CurrentUserAllHosts -Value "`$env:SM_CLIENT_CERT_FILE = '$SM_CLIENT_CERT_FILE'"
[IO.File]::WriteAllBytes($SM_CLIENT_CERT_FILE, [Convert]::FromBase64String($env:SM_CLIENT_CERT_FILE_B64))
- name: release/build
shell: powershell
env:
Expand Down

0 comments on commit 31184c0

Please sign in to comment.