-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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/** |