46
46
python-impl : PyPy
47
47
steps :
48
48
- name : Checkout code
49
- uses : actions/checkout@v2
49
+ uses : actions/checkout@v4
50
50
- name : Setup Python ${{ matrix.python-version }}
51
- uses : actions/setup-python@v2
51
+ uses : actions/setup-python@v5
52
52
with :
53
53
python-version : ${{ matrix.python-version }}
54
54
- name : Update pip
@@ -74,21 +74,21 @@ jobs:
74
74
- test
75
75
steps :
76
76
- name : Checkout code
77
- uses : actions/checkout@v2
77
+ uses : actions/checkout@v4
78
78
with :
79
79
submodules : true
80
80
- name : Setup Python 3.10
81
- uses : actions/setup-python@v2
81
+ uses : actions/setup-python@v5
82
82
with :
83
83
python-version : " 3.10"
84
84
- name : Install build requirements
85
85
run : python -m pip install -r .github/workflows/requirements.txt
86
86
- name : Build wheel
87
87
run : python -m build --wheel --outdir dist
88
88
- name : Store built wheels
89
- uses : actions/upload-artifact@v2
89
+ uses : actions/upload-artifact@v4
90
90
with :
91
- name : dist
91
+ name : wheel
92
92
path : dist/*
93
93
94
94
sdist :
@@ -98,21 +98,21 @@ jobs:
98
98
- test
99
99
steps :
100
100
- name : Checkout code
101
- uses : actions/checkout@v2
101
+ uses : actions/checkout@v4
102
102
with :
103
103
submodules : true
104
104
- name : Set up Python 3.10
105
- uses : actions/setup-python@v2
105
+ uses : actions/setup-python@v5
106
106
with :
107
107
python-version : " 3.10"
108
108
- name : Install build requirements
109
109
run : python -m pip install -r .github/workflows/requirements.txt
110
110
- name : Build distribution
111
111
run : python -m build --sdist --outdir dist
112
112
- name : Store built wheels
113
- uses : actions/upload-artifact@v2
113
+ uses : actions/upload-artifact@v4
114
114
with :
115
- name : dist
115
+ name : sdist
116
116
path : dist/*
117
117
118
118
upload :
@@ -126,11 +126,18 @@ jobs:
126
126
- sdist
127
127
- wheel
128
128
steps :
129
- - name : Download built distributions
130
- uses : actions/download-artifact@v2
129
+ - name : Download source distribution
130
+ uses : actions/download-artifact@v4
131
131
with :
132
- name : dist
133
- path : dist
132
+ name : sdist
133
+ path : dist/
134
+ merge-multiple : true
135
+ - name : Download wheel distributions
136
+ uses : actions/download-artifact@v4
137
+ with :
138
+ pattern : wheel
139
+ path : dist/
140
+ merge-multiple : true
134
141
- name : Publish distributions to PyPI
135
142
uses : pypa/gh-action-pypi-publish@release/v1
136
143
@@ -140,10 +147,12 @@ jobs:
140
147
if : " startsWith(github.ref, 'refs/tags/v')"
141
148
name : Release
142
149
needs : upload
150
+ permissions :
151
+ contents : write
143
152
steps :
144
153
- name : Checkout code
145
- uses : actions/checkout@v1
154
+ uses : actions/checkout@v4
146
155
- name : Release a Changelog
147
- uses : rasmus-saks/release-a-changelog-action@v1.0.1
156
+ uses : rasmus-saks/release-a-changelog-action@v1.2.0
148
157
with :
149
158
github-token : ' ${{ secrets.GITHUB_TOKEN }}'
0 commit comments