Skip to content

Commit

Permalink
add id-token permissions for trusted publish to pypi (#2586)
Browse files Browse the repository at this point in the history
* add id-token permissions for trusted publish to pypi

* replace publish action

* add pypa to cspell dictionary
  • Loading branch information
mbordash2 committed Sep 12, 2024
1 parent 4bf15fa commit 3d53555
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
needs:
- build-pypi
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/runway
permissions:
id-token: write
steps:
- name: ⤵️ Check out code from GitHub (complete)
uses: actions/checkout@v4
Expand All @@ -56,9 +61,7 @@ jobs:
poetry-install: false
poetry-plugins: poetry-dynamic-versioning[plugin]
- name: 🚀 Publish Distribution 📦 to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.pypi_password }}
run: poetry publish
run: pypa/gh-action-pypi-publish@v1.10.1
notify-on-publish:
name: Notify
needs:
Expand Down
1 change: 1 addition & 0 deletions .vscode/dictionaries/pypi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ prettytable
pydantic
pydocstyle
pyhcl
pypa
pywin
pyyaml
runpy
Expand Down

0 comments on commit 3d53555

Please sign in to comment.