Skip to content

Commit b06c791

Browse files
committed
fix wheel export
1 parent b961146 commit b06c791

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,14 @@ jobs:
110110

111111
- name: Export wheel from image
112112
run: |
113-
docker create --name temp-container ${{ steps.build-and-push.outputs.imageid }}
114-
docker cp temp-container:/out ./out
115-
docker rm temp-container
113+
CONTAINER_TAG=${{ steps.meta.outputs.tags }} # Use the same tag here
114+
CONTAINER_ID=$(docker create $CONTAINER_TAG)
115+
# Copy wheel files from the container to the local machine
116+
docker cp "$CONTAINER_ID:/out" ./out
117+
# Remove the container
118+
docker rm "$CONTAINER_ID"
119+
# Verify wheel file has been copied
120+
ls ./out
116121
117122
- name: Upload .whl to GitHub Release
118123
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)