-
-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try out PyPI's trusted publishers (#2980)
* Create release.yml * Update documentation * Try out a seperate build * Add changelog entry * Fix formatting * I forgot that wheels aren't .zips * PR feedback Co-authored-by: webknjaz < webknjaz+github/[email protected] > --------- Co-authored-by: webknjaz <webknjaz+github/[email protected]>
- Loading branch information
Showing
3 changed files
with
46 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
# a lot of code taken from https://github.com/pypa/cibuildwheel/blob/main/examples/github-deploy.yml | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.8" | ||
- run: python -m pip install build | ||
- run: python -m build | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: trio-dist | ||
path: | | ||
dist/*.tar.gz | ||
dist/*.whl | ||
pypi-publish: | ||
needs: [build] | ||
name: upload release to PyPI | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: release | ||
url: https://pypi.org/project/trio | ||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
pattern: trio-* | ||
path: dist | ||
merge-multiple: true | ||
|
||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Use PyPI's Trusted Publishers to make releases. |