16
16
steps :
17
17
- uses : actions/checkout@v4
18
18
- name : Set up Python
19
- uses : actions/setup-python@v4
19
+ uses : actions/setup-python@v5
20
20
with :
21
21
python-version : " 3.x"
22
22
- name : Install pypa/build
25
25
- name : Build a binary wheel and a source tarball
26
26
run : python3 -m build
27
27
- name : Store the distribution packages
28
- uses : actions/upload-artifact@v3
28
+ uses : actions/upload-artifact@v4
29
29
with :
30
30
name : python-package-distributions
31
31
path : dist/
44
44
id-token : write # IMPORTANT: mandatory for trusted publishing
45
45
steps :
46
46
- name : Download all the dists
47
- uses : actions/download-artifact@v3
47
+ uses : actions/download-artifact@v4
48
48
with :
49
49
name : python-package-distributions
50
50
path : dist/
65
65
66
66
steps :
67
67
- name : Download all the dists
68
- uses : actions/download-artifact@v3
68
+ uses : actions/download-artifact@v4
69
69
with :
70
70
name : python-package-distributions
71
71
path : dist/
96
96
97
97
publish-to-testpypi :
98
98
name : Publish Python 🐍 distribution 📦 to TestPyPI
99
+ if : startsWith(github.ref, 'refs/tags/') # only publish to TestPyPI on tag pushes
99
100
needs :
100
101
- build
101
102
runs-on : ubuntu-latest
@@ -109,7 +110,7 @@ jobs:
109
110
110
111
steps :
111
112
- name : Download all the dists
112
- uses : actions/download-artifact@v3
113
+ uses : actions/download-artifact@v4
113
114
with :
114
115
name : python-package-distributions
115
116
path : dist/
0 commit comments