File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -144,9 +144,13 @@ jobs:
144
144
with :
145
145
python-version : 3.13
146
146
- name : Install dependencies
147
- run : python -m pip install -U pip wheel
147
+ run : python -m pip install -U pip wheel build
148
148
- name : Make dists
149
- run : python setup.py sdist bdist_wheel
149
+ run : python -m build
150
+
151
+ - name : Login
152
+ run : |
153
+ echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
150
154
- name : Release
151
155
152
156
with :
@@ -158,3 +162,24 @@ jobs:
158
162
version_file : aiosignal/__init__.py
159
163
fix_issue_regex : " \n ?\\ s*`#(\\ d+) <https://github.com/aio-libs/aiosignal/issues/\\ 1>`_"
160
164
fix_issue_repl : ' (#\1)'
165
+
166
+ - name : >-
167
+ Publish 🐍📦 to PyPI
168
+ uses: pypa/gh-action-pypi-publish@release/v1
169
+
170
+ - name : Sign the dists with Sigstore
171
+
172
+ with :
173
+ inputs : >-
174
+ ./dist/*.tar.gz
175
+ ./dist/*.whl
176
+
177
+ - name : Upload artifact signatures to GitHub Release
178
+ # Confusingly, this action also supports updating releases, not
179
+ # just creating them. This is what we want here, since we've manually
180
+ # created the release above.
181
+ uses : softprops/action-gh-release@v2
182
+ with :
183
+ # dist/ contains the built packages, which smoketest-artifacts/
184
+ # contains the signatures and certificates.
185
+ files : dist/**
You can’t perform that action at this time.
0 commit comments