Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Append source to the distribution #11

Merged
merged 4 commits into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/python-publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: python/dist/*.tar.gz

upload_pypi:
Expand All @@ -64,18 +65,19 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
# unpacks wheel files into artifacts/wheels
# unpacks wheel files into artifacts
pattern: cibw-*
merge-multiple: false
path: artifacts/wheels
- name: Copy wheels to the dist folder
path: artifacts
- name: Copy everything to the dist folder
run: |
mkdir -p dist
for pattern in artifacts/wheels/cibw-wheels-macos-*/* artifacts/wheels/cibw-wheels-ubuntu-*/* artifacts/wheels/cibw-wheels-windows-*/*; do
for pattern in artifacts/cibw-sdist/* artifacts/cibw-wheels-macos-*/* artifacts/cibw-wheels-ubuntu-*/* artifacts/cibw-wheels-windows-*/*; do
cp -r $pattern dist 2>/dev/null || echo "No files matched $pattern"
done
echo "Content copied to dist."

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
- uses: pypa/gh-action-pypi-publish@v1.5.0
with:
user: __token__
Expand Down
Loading