77 tags :
88 - " v*"
99
10+ permissions :
11+ actions : write
12+
1013jobs :
1114 build-manylinux :
1215 runs-on : ubuntu-latest
1316
1417 steps :
15- - uses : actions/checkout@v2
18+ - uses : actions/checkout@v4
1619 - name : Set up Python
17- uses : actions/setup-python@v2
20+ uses : actions/setup-python@v4
1821 with :
19- python-version : " 3.8 "
22+ python-version : " 3.9 "
2023
2124 - name : Install dependencies
2225 run : python -m pip install -U pip setuptools
2326
2427 - name : Build manylinux Python wheels
2528 uses :
RalfG/[email protected] _x86_64 2629 with :
27- python-versions : ' cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312'
30+ python-versions : ' cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312'
2831 build-requirements : ' pybind11'
2932
3033 - name : Upload wheels
3336 name : manylinux-wheels
3437 path : dist/*manylinux*.whl
3538
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+ });
48+
3649 build-macos :
3750 runs-on : ${{ matrix.platform }}
3851
@@ -41,12 +54,12 @@ jobs:
4154 matrix :
4255 platform :
4356 - macos-latest
44- python-version : [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
57+ python-version : ["3.9", "3.10", "3.11", "3.12" ]
4558
4659 steps :
47- - uses : actions/checkout@v2
60+ - uses : actions/checkout@v4
4861 - name : Set up Python ${{ matrix.python-version }}
49- uses : actions/setup-python@v2
62+ uses : actions/setup-python@v4
5063 with :
5164 python-version : ${{ matrix.python-version }}
5265
6275 name : macos-wheels
6376 path : dist/*.whl
6477
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+ });
87+
6588 build-windows :
6689 runs-on : ${{ matrix.platform }}
6790
@@ -70,12 +93,12 @@ jobs:
7093 matrix :
7194 platform :
7295 - windows-latest
73- python-version : [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
96+ python-version : ["3.9", "3.10", "3.11", "3.12" ]
7497
7598 steps :
76- - uses : actions/checkout@v2
99+ - uses : actions/checkout@v4
77100 - name : Set up Python ${{ matrix.python-version }}
78- uses : actions/setup-python@v2
101+ uses : actions/setup-python@v4
79102 with :
80103 python-version : ${{ matrix.python-version }}
81104
@@ -97,17 +120,27 @@ jobs:
97120 name : windows-wheels
98121 path : dist/*.whl
99122
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+ });
132+
100133 upload-to-pypi :
101134 needs : [build-manylinux, build-macos, build-windows]
102135 environment : PyPI
103136 runs-on : ubuntu-latest
104137
105138 steps :
106- - uses : actions/checkout@v2
139+ - uses : actions/checkout@v4
107140 - name : Set up Python
108- uses : actions/setup-python@v2
141+ uses : actions/setup-python@v4
109142 with :
110- python-version : " 3.8 "
143+ python-version : " 3.9 "
111144
112145 - name : Install dependencies
113146 run : |
@@ -118,19 +151,19 @@ jobs:
118151 run : poetry build -f sdist
119152
120153 - name : Download manylinux-wheels
121- uses : actions/download-artifact@v2
154+ uses : actions/download-artifact@v4
122155 with :
123156 name : manylinux-wheels
124157 path : dist
125158
126159 - name : Download macos-wheels
127- uses : actions/download-artifact@v2
160+ uses : actions/download-artifact@v4
128161 with :
129162 name : macos-wheels
130163 path : dist
131164
132165 - name : Download windows-wheels
133- uses : actions/download-artifact@v2
166+ uses : actions/download-artifact@v4
134167 with :
135168 name : windows-wheels
136169 path : dist
0 commit comments