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

@ -103,13 +103,18 @@ jobs:
if: matrix.build_type == 'Playback'
run: |
Xcopy /Y /E /I .\Data\PlaybackGeckoCodes\* .\Binary\x64\Sys\GameSettings\
- name: "Codesign ${{ matrix.build_type}} Dolphin"
- name: "Codesign ${{ matrix.build_type }} Dolphin"
working-directory: ${{ github.workspace }}
shell: powershell
env:
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