Skip to content

Commit 4d2e9a5

Browse files
authored
Enhance CI release workflow with manifest generation
Updated the CI release workflow to include manifest generation and signing steps.
1 parent ba14259 commit 4d2e9a5

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/CI_release.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,14 @@ stages:
4646
ARTIFACT_DIR: $(ARTIFACT_DIR)
4747
ESRP_CONNECTION_NAME: $(ESRP_CONNECTION_NAME)
4848
49+
- pwsh: npx @vscode/vsce@latest generate-manifest -i $(ARTIFACT_DIR)/vscode-edge-devtools.vsix -o $(ARTIFACT_DIR)/vscode-edge-devtools.manifest
50+
displayName: 'Generate extension manifest'
51+
52+
- pwsh: cp $(ARTIFACT_DIR)/vscode-edge-devtools.manifest $(ARTIFACT_DIR)/vscode-edge-devtools.signature.p7s
53+
displayName: 'Prepare manifest for signing'
54+
4955
- task: EsrpCodeSigning@6
56+
conditional: false
5057
inputs:
5158
ConnectedServiceName: $(ESRP_CONNECTION_NAME)
5259
AppRegistrationClientId: $(appRegistrationClientId)
@@ -56,7 +63,18 @@ stages:
5663
AuthAKVName: $(esrpAuthAkvName)
5764
AuthSignCertName: $(esrpAuthCertName)
5865
FolderPath: $(ARTIFACT_DIR)
59-
Pattern: '*.vsix'
66+
Pattern: 'extension.signature.p7'
67+
signConfigType: 'inlineSignParams'
68+
inlineOperation: |
69+
[
70+
{
71+
"keyCode": "$(KEY_CODE)",
72+
"operationSetCode": "$(OPERATION_SET_CODE)",
73+
"parameters" : [],
74+
"toolName": "sign",
75+
"toolVersion": "1.0"
76+
}
77+
]
6078
SessionTimeout: '60'
6179
MaxConcurrency: '50'
6280
MaxRetryAttempts: '5'
@@ -78,3 +96,4 @@ stages:
7896

7997

8098

99+

0 commit comments

Comments
 (0)