Skip to content

Commit

Permalink
ddd
Browse files Browse the repository at this point in the history
  • Loading branch information
dirvine committed Nov 30, 2024
1 parent 46b42cf commit 0fef9fc
Showing 1 changed file with 37 additions and 32 deletions.
69 changes: 37 additions & 32 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -325,49 +325,54 @@ jobs:
id-token: write
contents: read
steps:
- name: Create directories
run: |
mkdir -p dist
mkdir -p downloaded
- name: Create dist directory
run: mkdir -p dist

- name: Download all artifacts
# Download artifacts for each platform and Python version
- name: Download Linux artifacts
uses: actions/download-artifact@v3
with:
path: downloaded
pattern: wheels-linux-*
path: dist
merge-multiple: true

- name: Debug and prepare artifacts
run: |
echo "Initial downloaded content:"
ls -la downloaded/
- name: Download MacOS artifacts
uses: actions/download-artifact@v3
with:
pattern: wheels-macos-*
path: dist
merge-multiple: true

echo "\nProcessing each artifact directory:"
for dir in downloaded/*/; do
echo "\nProcessing directory: $dir"
ls -la "$dir"
# Copy any wheel files found
find "$dir" -name "*.whl" -exec cp -v {} dist/ \;
find "$dir" -name "*.tar.gz" -exec cp -v {} dist/ \;
# If there's a dist subdirectory, check there too
if [ -d "$dir/dist" ]; then
echo "Found dist subdirectory in $dir"
find "$dir/dist" -name "*.whl" -exec cp -v {} dist/ \;
find "$dir/dist" -name "*.tar.gz" -exec cp -v {} dist/ \;
fi
done
- name: Download Windows artifacts
uses: actions/download-artifact@v3
with:
pattern: wheels-windows-*
path: dist
merge-multiple: true

echo "\nFinal contents of dist directory:"
- name: Download sdist
uses: actions/download-artifact@v3
with:
pattern: wheels-sdist-*
path: dist
merge-multiple: true

- name: Debug dist contents
run: |
echo "Contents of dist directory:"
ls -la dist/
# Verify we have files
file_count=$(find dist/ -type f | wc -l)
echo "Found $file_count distribution files"
echo "\nAll wheel files:"
find dist -name "*.whl" || echo "No wheel files found"
echo "\nAll source distributions:"
find dist -name "*.tar.gz" || echo "No source distributions found"
file_count=$(find dist -type f \( -name "*.whl" -o -name "*.tar.gz" \) | wc -l)
echo "\nFound $file_count distribution files"
if [ $file_count -eq 0 ]; then
echo "Error: No distribution files found!"
echo "Complete directory structure:"
find downloaded -type f -ls
exit 1
fi
Expand Down

0 comments on commit 0fef9fc

Please sign in to comment.