Skip to content

Commit

Permalink
ci: skip code signing if not release
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Sep 22, 2023
1 parent 5137adf commit c0818c3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0818c3

Please sign in to comment.