-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📦 Set up verified publisher python publication job
- Loading branch information
1 parent
a85bdc2
commit b51573e
Showing
1 changed file
with
5 additions
and
4 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 |
---|---|---|
|
@@ -58,6 +58,9 @@ jobs: | |
name: Publish package to PyPI | ||
runs-on: ubuntu-latest | ||
needs: tests | ||
environment: release | ||
permissions: | ||
id-token: write | ||
|
||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
|
||
|
@@ -71,8 +74,6 @@ jobs: | |
run: | | ||
pip install pip setuptools wheel --upgrade | ||
python setup.py sdist bdist_wheel | ||
- name: Publish a Python distribution to PyPI | ||
uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} | ||
uses: pypa/gh-action-pypi-publish@release/v1 |