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:
144144 with :
145145 python-version : 3.13
146146 - name : Install dependencies
147- run : python -m pip install -U pip wheel
147+ run : python -m pip install -U pip wheel build
148148 - 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
150154 - name : Release
151155 uses : aio-libs/create-release@v1.6.6
152156 with :
@@ -158,3 +162,24 @@ jobs:
158162 version_file : aiosignal/__init__.py
159163 fix_issue_regex : " \n ?\\ s*`#(\\ d+) <https://github.com/aio-libs/aiosignal/issues/\\ 1>`_"
160164 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+ uses : sigstore/gh-action-sigstore-python@v3.0.0
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