Skip to content

Commit f90f6d4

Browse files
authored
Fix deployment (#649)
1 parent 74015c6 commit f90f6d4

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff 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/[email protected]
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/[email protected]
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/**

0 commit comments

Comments
 (0)