File tree 1 file changed +30
-2
lines changed
1 file changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -347,9 +347,17 @@ jobs:
347
347
348
348
deploy :
349
349
name : Deploy
350
- environment : release
351
350
needs : [build-tarball, build-wheels]
352
351
runs-on : ubuntu-latest
352
+
353
+ permissions :
354
+ contents : write # IMPORTANT: mandatory for making GitHub Releases
355
+ id-token : write # IMPORTANT: mandatory for trusted publishing & sigstore
356
+
357
+ environment :
358
+ name : pypi
359
+ url : https://pypi.org/p/aiohttp
360
+
353
361
steps :
354
362
- name : Checkout
355
363
@@ -376,7 +384,27 @@ jobs:
376
384
name : aiohttp
377
385
version_file : aiohttp/__init__.py
378
386
github_token : ${{ secrets.GITHUB_TOKEN }}
379
- pypi_token : ${{ secrets.PYPI_API_TOKEN }}
380
387
dist_dir : dist
381
388
fix_issue_regex : " `#(\\ d+) <https://github.com/aio-libs/aiohttp/issues/\\ 1>`_"
382
389
fix_issue_repl : " (#\\ 1)"
390
+
391
+ - name : >-
392
+ Publish 🐍📦 to PyPI
393
+ uses: pypa/gh-action-pypi-publish@release/v1
394
+
395
+ - name : Sign the dists with Sigstore
396
+
397
+ with :
398
+ inputs : >-
399
+ ./dist/*.tar.gz
400
+ ./dist/*.whl
401
+
402
+ - name : Upload artifact signatures to GitHub Release
403
+ # Confusingly, this action also supports updating releases, not
404
+ # just creating them. This is what we want here, since we've manually
405
+ # created the release above.
406
+ uses : softprops/action-gh-release@v1
407
+ with :
408
+ # dist/ contains the built packages, which smoketest-artifacts/
409
+ # contains the signatures and certificates.
410
+ files : dist/**
You can’t perform that action at this time.
0 commit comments