ci: skip code signing if not release

This commit is contained in:
Nikhil Narayana 2023-09-22 16:21:36 -07:00
commit c0818c3bb6
No known key found for this signature in database
GPG key ID: 2D6E647B8732451F

View file

@ -110,6 +110,11 @@ jobs:
ES_USERNAME: ${{ secrets.ES_USERNAME }}
if: env.ES_USERNAME != null
run: |
$msg = git log -1 --no-merges --pretty=%B
if ($msg -notmatch "^release.*") {
echo "not release, skipping code signing"
exit 0;
}
if (!(Test-Path ".\CodeSignTool\CodeSignTool.bat" -PathType Leaf)) {
Invoke-WebRequest -Uri https://www.ssl.com/download/codesigntool-for-windows/ -UseBasicParsing -OutFile ".\CodeSignTool.zip"
7z x CodeSignTool.zip