Skip to content

Commit

Permalink
Publish with a Trusted Publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
borntyping committed Dec 2, 2023
1 parent 6a14458 commit 079ec1c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ jobs:
run: "python -m pytest"
publish:
name: "📦 Publish Python distributions"
if: "startsWith(github.ref, 'refs/tags')"
runs-on: "ubuntu-latest"
environment: "publish"
permissions:
id-token: write
strategy:
matrix:
python-version:
Expand All @@ -69,8 +73,5 @@ jobs:
run: "python -m pip install wheel --user"
- name: "🐍 Build a binary wheel and a source tarball"
run: "python setup.py sdist bdist_wheel"
- name: "📦 Publish distribution to PyPI"
- name: "📦 Publish package distributions to PyPI"
uses: "pypa/gh-action-pypi-publish@release/v1"
if: "startsWith(github.ref, 'refs/tags')"
with:
password: "${{ secrets.pypi_password }}"

0 comments on commit 079ec1c

Please sign in to comment.