Skip to content

Remove overwrite from upload-artifact #97

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

Merged
merged 1 commit into from
Sep 6, 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
17 changes: 14 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
- uses: pypa/[email protected]
- uses: actions/upload-artifact@v4
with:
name: artifact-wheel-${{ matrix.os }}
path: wheelhouse/*.whl
overwrite: true

make_sdist:
runs-on: "ubuntu-latest"
Expand All @@ -54,11 +54,22 @@ jobs:
python -m build --no-isolation --sdist
- uses: actions/upload-artifact@v4
with:
name: artifact-sdist
path: dist/*.tar.gz
overwrite: true

upload_all:
merge:
runs-on: ubuntu-latest
needs: [build_wheels, make_sdist]
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: artifact
pattern: artifact-*
delete-merged: true

upload_all:
needs: merge
runs-on: "ubuntu-latest"
environment: release
if: github.event_name == 'release' && github.event.action == 'published'
Expand Down
Loading