@@ -104,25 +104,46 @@ jobs:
104104 echo "STELLAR_CLI_INSTALLER_BASENAME=${installer_basename}" >> $GITHUB_ENV
105105 echo "STELLAR_CLI_INSTALLER=${installer_basename}.exe" >> $GITHUB_ENV
106106 echo "ARTIFACT_NAME=stellar-cli-${version}-x86_64-pc-windows-msvc.tar.gz" >> $GITHUB_ENV
107+ echo "SM_CLIENT_CERT_FILE=D:\\sm_client_cert.p12" >> "$GITHUB_ENV"
107108
108109 - name : Download Artifact
109110 uses : actions/download-artifact@v5
110111 with :
111112 name : ${{ env.ARTIFACT_NAME }}
113+
112114 - name : Uncompress Artifact
113115 run : tar xvf ${{ env.ARTIFACT_NAME }}
116+
114117 - shell : powershell
115118 run : winget install --id JRSoftware.InnoSetup --scope machine --silent --accept-package-agreements --accept-source-agreements --force
119+
116120 - shell : powershell
117121 run : |
118122 $innoPath = "C:\Program Files (x86)\Inno Setup 6"
119123 echo $innoPath | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
124+
120125 - name : Build Installer
121126 shell : powershell
122127 run : |
123128 $Env:STELLAR_CLI_VERSION = "${{ env.VERSION }}"
124129 ISCC.exe installer.iss
125130 mv Output/stellar-installer.exe ${{ env.STELLAR_CLI_INSTALLER }}
131+
132+ - name : Setup SM_CLIENT_CERT_FILE
133+ run : |
134+ echo "${{ secrets.SM_CLIENT_CERT_FILE_B64 }}" | base64 --decode > /d/sm_client_cert.p12
135+ shell : bash
136+
137+ - name : Setup Software Trust Manager
138+ if :
139+ github.event_name == 'release' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.head_ref, 'release/')
140+ id : stm-setup
141+ 142+ with :
143+ simple-signing-mode : true
144+ keypair-alias : key_1412258126
145+ input : ${{ env.STELLAR_CLI_INSTALLER }}
146+
126147 - name : Upload Artifact
127148 uses : ./.github/actions/artifact-upload
128149 with :
0 commit comments