Skip to content

Commit 6165f52

Browse files
committed
fix(release): upload Linux release assets from the manylinux container
gh release upload shells out to git, which refuses the root-owned container workspace with 'dubious ownership'. Mark the workspace safe and pass --repo so gh resolves the release without inspecting the local git remote.
1 parent d25de4f commit 6165f52

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/publish.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,11 @@ jobs:
490490
echo "::error::Archive not found: $archive"
491491
exit 1
492492
fi
493-
gh release upload "$tag" "$archive" --clobber
493+
# The container runs as root but the workspace is owned by the runner
494+
# uid; gh shells out to git, which refuses with "dubious ownership".
495+
# Mark it safe and pass --repo so gh never needs the local git remote.
496+
git config --global --add safe.directory "${GITHUB_WORKSPACE:-/__w/basemind/basemind}"
497+
gh release upload "$tag" "$archive" --clobber --repo "$GITHUB_REPOSITORY"
494498
495499
checksums:
496500
name: Generate and upload checksums

0 commit comments

Comments
 (0)