Skip to content

Commit b1d3170

Browse files
byshingclaude
andcommitted
Fix notarize step: extract binary from dist tarball
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent ccbba1b commit b1d3170

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,13 @@ jobs:
162162
if: ${{ contains(join(matrix.targets, ','), 'apple-darwin') && needs.plan.outputs.publishing == 'true' }}
163163
shell: bash
164164
run: |
165-
binary=$(find target/dist -name "bitmex" -not -path "*/build/*" -not -path "*/deps/*" | head -1)
166-
zip_path="${binary}.zip"
167-
ditto -c -k --keepParent "$binary" "$zip_path"
168-
xcrun notarytool submit "$zip_path" \
165+
target="${{ join(matrix.targets, '') }}"
166+
tarball="target/distrib/bitmex-cli-${target}.tar.gz"
167+
tmpdir=$(mktemp -d)
168+
tar xzf "$tarball" -C "$tmpdir"
169+
binary="$tmpdir/bitmex-cli-${target}/bitmex"
170+
ditto -c -k --keepParent "$binary" "$tmpdir/notarize.zip"
171+
xcrun notarytool submit "$tmpdir/notarize.zip" \
169172
--apple-id "$APPLE_NOTARIZE_ID" \
170173
--password "$APPLE_NOTARIZE_PASSWORD" \
171174
--team-id "$APPLE_NOTARIZE_TEAM_ID" \

0 commit comments

Comments
 (0)