File tree 3 files changed +15
-7
lines changed
3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 50
50
- name : Upload wheels
51
51
uses : actions/upload-artifact@v2
52
52
with :
53
+ name : dist
53
54
path : ./wheelhouse/*.whl
54
55
55
56
build_sdist :
71
72
- name : Upload sdist
72
73
uses : actions/upload-artifact@v2
73
74
with :
75
+ name : dist
74
76
path : dist/*.tar.gz
75
77
76
78
build_pypy :
97
99
- name : Upload wheels
98
100
uses : actions/upload-artifact@v2
99
101
with :
102
+ name : dist
100
103
path : dist/*.whl
Original file line number Diff line number Diff line change @@ -49,9 +49,12 @@ def utc2local(timestring):
49
49
os .chdir (dest )
50
50
51
51
r = requests .get (f"https://api.github.com/repos/{ repo_owner } /actions/artifacts" )
52
- latest = max (r .json ()["artifacts" ], key = lambda a : a ["created_at" ])
53
-
54
- print (f"Artifacts created at { utc2local (latest ['created_at' ])} " )
55
- download_url (latest ["archive_download_url" ], temp_zip )
56
- unpack_zipfile (temp_zip )
57
- os .remove (temp_zip )
52
+ dists = [a for a in r .json ()["artifacts" ] if a ["name" ] == "dist" ]
53
+ if not dists :
54
+ print (f"No recent dists!" )
55
+ else :
56
+ latest = max (dists , key = lambda a : a ["created_at" ])
57
+ print (f"Artifacts created at { utc2local (latest ['created_at' ])} " )
58
+ download_url (latest ["archive_download_url" ], temp_zip )
59
+ unpack_zipfile (temp_zip )
60
+ os .remove (temp_zip )
Original file line number Diff line number Diff line change 44
44
- ELSE:
45
45
$ make publish
46
46
- Kits:
47
+ - Manually trigger the kit GitHub Action
48
+ - https://github.com/nedbat/coveragepy/actions?query=workflow%3A%22Build+kits%22
47
49
- Download built kits from GitHub Actions:
48
- $ make download_kits
50
+ $ make clean download_kits
49
51
- examine the dist directory, and remove anything that looks malformed.
50
52
- check the dist directory:
51
53
$ python -m twine check dist/*
You can’t perform that action at this time.
0 commit comments