Try to get failure log if notarization fails

This commit is contained in:
Tabby Cromarty
2025-11-11 20:38:07 +00:00
parent 5479fea8b4
commit 4ec6ccac9b
3 changed files with 18 additions and 3 deletions

View File

@@ -68,6 +68,7 @@ runs:
if (( ${+RUNNER_DEBUG} )) package_args+=(--debug)
if [[ '${{ inputs.codesign }}' == 'true' ]] package_args+=(--codesign)
if [[ '${{ inputs.notarize }}' == 'true' ]] package_args+=(--notarize)
if [[ '${{ inputs.package }}' == 'true' ]] package_args+=(--package)
.github/scripts/package-macos ${package_args}

View File

@@ -217,8 +217,13 @@ ${_usage_host:-}"
read_codesign_installer
read_codesign_pass
xcrun notarytool submit ${project_root}/release/${output_name}.pkg \
--keychain-profile "OBS-Codesign-Password" --wait
NOTARY_SUBMIT_OUTPUT=$(xcrun notarytool submit ${project_root}/release/${output_name}.pkg \
--keychain-profile "OBS-Codesign-Password" --wait)
echo "$NOTARY_SUBMIT_OUTPUT"
xcrun notarytool log $(echo "$NOTARY_SUBMIT_OUTPUT" | awk '/id: / { print $2;exit; }') --keychain-profile "OBS-Codesign-Password" \
notarytool_log_${macos_arch}.json
local -i _status=0

View File

@@ -170,6 +170,7 @@ jobs:
GITHUB_WORKSPACE: ${{ github.workspace }}
- name: Package Plugin 📀
id: package_plugin
uses: ./.github/actions/package-plugin
with:
target: macos-${{ matrix.architecture }}
@@ -185,15 +186,23 @@ jobs:
env:
MACOS_ARCH: ${{ matrix.architecture }}
- name: Upload Notarization Failure Artifacts 📡
uses: actions/upload-artifact@v4
if: failure() && steps.package_plugin.outcome == 'failure'
with:
name: ${{ steps.setup.outputs.pluginName }}-${{ steps.setup.outputs.pluginVersion }}-macos-${{ matrix.architecture }}-${{ needs.check-event.outputs.commitHash }}-notarization-log
path: ${{ github.workspace }}/notarytool_log_*.json
- name: Upload Artifacts 📡
uses: actions/upload-artifact@v4
if: steps.package_plugin.outcome == 'success'
with:
name: ${{ steps.setup.outputs.pluginName }}-${{ steps.setup.outputs.pluginVersion }}-macos-${{ matrix.architecture }}-${{ needs.check-event.outputs.commitHash }}
path: ${{ github.workspace }}/release/${{ steps.setup.outputs.pluginName }}-${{ steps.setup.outputs.pluginVersion }}-macos-${{ matrix.architecture }}.*
- name: Upload Debug Symbol Artifacts 🪲
uses: actions/upload-artifact@v4
if: ${{ needs.check-event.outputs.config == 'Release' }}
if: ${{ needs.check-event.outputs.config == 'Release' }} && ${{ steps.package_plugin.outcome == 'success' }}
with:
name: ${{ steps.setup.outputs.pluginName }}-${{ steps.setup.outputs.pluginVersion }}-macos-${{ matrix.architecture }}-${{ needs.check-event.outputs.commitHash }}-dSYMs
path: ${{ github.workspace }}/release/${{ steps.setup.outputs.pluginName }}-${{ steps.setup.outputs.pluginVersion }}-macos-${{ matrix.architecture }}-dSYMs.*