File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 3737 feature_buildSymbols : configured
3838 feature_uploadSymbolsToMozilla : configured
3939 feature_crowdinSync : configured
40- # feature_signing: configured
40+ feature_signing : configured
4141 # feature_buildAppx: configured
4242
4343jobs :
@@ -197,7 +197,12 @@ jobs:
197197 run : ci/scripts/setBuildVersionVars.ps1
198198 - name : Set scons args
199199 run : ci/scripts/setSconsArgs.ps1
200- - name : Prepare source code for launcher
200+ env :
201+ apiSigningToken : ${{ (github.event_name == 'push' && env.feature_signing) && secrets.API_SIGNING_TOKEN || '' }}
202+ - name : Install SignPath
203+ if : ${{ github.event_name == 'push' && env.feature_signing }}
204+ run : Install-Module -Name SignPath -Force
205+ - name : Create launcher
201206 shell : cmd
202207 run : scons %sconsOutTargets% %sconsArgs% ${{ !runner.debug && '--all-cores' || '-j1'}}
203208 - name : Upload launcher
Original file line number Diff line number Diff line change 88 [string ]$FileToSign
99)
1010
11+ Import-Module - Name SignPath
1112Submit-SigningRequest - ApiToken $ApiToken - InputArtifactPath $FileToSign - OutputArtifactPath $FileToSign - OrganizationId " 12147e94-bba9-4fef-b29b-300398e90c5a" - ProjectSlug " NVDA" - SigningPolicySlug " release_signing_policy" - WaitForCompletion - Force
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ if ($env:versionType) {
1111 $sconsArgs += " updateVersionType=$env: versionType "
1212}
1313$sconsArgs += " publisher=`" $env: scons_publisher `" "
14- if ($env: GITHUB_EVENT_NAME -eq " push" -and $env: feature_signing ) {
14+ if ($env: GITHUB_EVENT_NAME -eq " push" -and $env: feature_signing -and $env: apiSigningToken ) {
15+ # Note must be a single line variable
1516 $sconsArgs += " apiSigningToken=$env: apiSigningToken "
1617}
1718$sconsArgs += " version_build=$ ( [int ]$env: GITHUB_RUN_NUMBER + [int ]$env: START_BUILD_NUMBER ) "
You can’t perform that action at this time.
0 commit comments