Skip to content

Commit

Permalink
Fix deployment (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov authored Dec 13, 2024
1 parent 74015c6 commit f90f6d4
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,13 @@ jobs:
with:
python-version: 3.13
- name: Install dependencies
run: python -m pip install -U pip wheel
run: python -m pip install -U pip wheel build
- name: Make dists
run: python setup.py sdist bdist_wheel
run: python -m build

- name: Login
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
- name: Release
uses: aio-libs/[email protected]
with:
Expand All @@ -158,3 +162,24 @@ jobs:
version_file: aiosignal/__init__.py
fix_issue_regex: "\n?\\s*`#(\\d+) <https://github.com/aio-libs/aiosignal/issues/\\1>`_"
fix_issue_repl: ' (#\1)'

- name: >-
Publish 🐍📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Sign the dists with Sigstore
uses: sigstore/[email protected]
with:
inputs: >-
./dist/*.tar.gz
./dist/*.whl
- name: Upload artifact signatures to GitHub Release
# Confusingly, this action also supports updating releases, not
# just creating them. This is what we want here, since we've manually
# created the release above.
uses: softprops/action-gh-release@v2
with:
# dist/ contains the built packages, which smoketest-artifacts/
# contains the signatures and certificates.
files: dist/**

0 comments on commit f90f6d4

Please sign in to comment.