Skip to content

Commit 1c76d60

Browse files
committed
fixing github actions
1 parent 544c947 commit 1c76d60

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

.github/workflows/build-publish.yaml

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,7 @@ jobs:
3535
with:
3636
name: manylinux-wheels
3737
path: dist/*manylinux*.whl
38-
39-
- name: Delete Artifact
40-
uses: actions/github-script@v7
41-
with:
42-
script: |
43-
github.rest.actions.deleteArtifact({
44-
owner: context.repo.owner,
45-
repo: context.repo.repo,
46-
artifact_id: ${{ steps.artifact-upload.outputs.artifact-id }}
47-
});
38+
overwrite: true
4839

4940
build-macos:
5041
runs-on: ${{ matrix.platform }}
@@ -74,16 +65,7 @@ jobs:
7465
with:
7566
name: macos-wheels
7667
path: dist/*.whl
77-
78-
- name: Delete Artifact
79-
uses: actions/github-script@v7
80-
with:
81-
script: |
82-
github.rest.actions.deleteArtifact({
83-
owner: context.repo.owner,
84-
repo: context.repo.repo,
85-
artifact_id: ${{ steps.artifact-upload.outputs.artifact-id }}
86-
});
68+
overwrite: true
8769

8870
build-windows:
8971
runs-on: ${{ matrix.platform }}
@@ -119,16 +101,7 @@ jobs:
119101
with:
120102
name: windows-wheels
121103
path: dist/*.whl
122-
123-
- name: Delete Artifact
124-
uses: actions/github-script@v7
125-
with:
126-
script: |
127-
github.rest.actions.deleteArtifact({
128-
owner: context.repo.owner,
129-
repo: context.repo.repo,
130-
artifact_id: ${{ steps.artifact-upload.outputs.artifact-id }}
131-
});
104+
overwrite: true
132105

133106
upload-to-pypi:
134107
needs: [build-manylinux, build-macos, build-windows]

0 commit comments

Comments
 (0)