File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ permissions:
1010jobs :
1111 release :
1212 runs-on : macos-latest
13+ timeout-minutes : 120 # backstop for the notarization retry loop below
1314 steps :
1415 - name : Checkout
1516 uses : actions/checkout@v4
4142 APPLE_API_ISSUER : ${{ secrets.APPLE_API_ISSUER }}
4243 # Publishing the GitHub Release
4344 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44- run : npm run release:mac
45+ # electron-builder notarizes internally and has no per-attempt retry,
46+ # so Apple's transient notary drops (-1009) can fail an otherwise-good
47+ # build. Retry the whole build a few times; notarization runs before
48+ # publishing, so a failed attempt leaves nothing half-published.
49+ run : |
50+ for attempt in 1 2 3; do
51+ if npm run release:mac; then
52+ exit 0
53+ fi
54+ echo "release attempt ${attempt} failed; retrying in 60s..."
55+ sleep 60
56+ done
57+ echo "release failed after 3 attempts"
58+ exit 1
You can’t perform that action at this time.
0 commit comments