Skip to content

Commit 1f5a307

Browse files
Set code signing tool config
1 parent 0816b08 commit 1f5a307

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/publish_prod.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,16 @@ jobs:
3333
3434
- name: Configure CodeSignTool
3535
run: |
36-
Add-Content -Path "$env:GITHUB_WORKSPACE\code_sign\conf\code_sign_tool.properties" -Value 'TSA_LEGACY_URL=http://ts.ssl.com/legacy'
36+
$confPath = "$env:GITHUB_WORKSPACE\code_sign\conf\code_sign_tool.properties"
37+
if (Test-Path $confPath) { Remove-Item $confPath -Force }
38+
$lines = @(
39+
'CLIENT_ID=kaXTRACNijSWsFdRKg_KAfD3fqrBlzMbWs6TwWHwAn8'
40+
'OAUTH2_ENDPOINT=https://login.ssl.com/oauth2/token'
41+
'CSC_API_ENDPOINT=https://cs.ssl.com'
42+
'TSA_URL=http://ts.ssl.com'
43+
'TSA_LEGACY_URL=http://ts.ssl.com/legacy'
44+
)
45+
Set-Content -Path $confPath -Value $lines
3746
3847
- name: Prepare artifacts directory
3948
run: |

.github/workflows/publish_stage.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,16 @@ jobs:
3333
3434
- name: Configure CodeSignTool
3535
run: |
36-
Add-Content -Path "$env:GITHUB_WORKSPACE\code_sign\conf\code_sign_tool.properties" -Value 'TSA_LEGACY_URL=http://ts.ssl.com/legacy'
36+
$confPath = "$env:GITHUB_WORKSPACE\code_sign\conf\code_sign_tool.properties"
37+
if (Test-Path $confPath) { Remove-Item $confPath -Force }
38+
$lines = @(
39+
'CLIENT_ID=kaXTRACNijSWsFdRKg_KAfD3fqrBlzMbWs6TwWHwAn8'
40+
'OAUTH2_ENDPOINT=https://login.ssl.com/oauth2/token'
41+
'CSC_API_ENDPOINT=https://cs.ssl.com'
42+
'TSA_URL=http://ts.ssl.com'
43+
'TSA_LEGACY_URL=http://ts.ssl.com/legacy'
44+
)
45+
Set-Content -Path $confPath -Value $lines
3746
3847
- name: Prepare artifacts directory
3948
run: |

0 commit comments

Comments
 (0)