Skip to content

Commit 93ec630

Browse files
committed
Use trusted publisher to deploy to PyPI [skip ci]
1 parent cb7d24b commit 93ec630

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ on:
77
jobs:
88
deploy:
99
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
1012
env:
1113
POETRY_VIRTUALENVS_CREATE: "false"
1214
steps:
13-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1416

1517
- name: Install poetry
1618
run: |
1719
pipx install poetry
18-
pipx inject poetry poetry-bumpversion
20+
poetry self add poetry-bumpversion
1921
2022
- name: Build
2123
run: |
2224
poetry version ${{ github.ref_name }}
2325
poetry build
2426
25-
- name: Publish
26-
run: |
27-
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
28-
poetry publish
27+
- name: Publish package distributions to PyPI
28+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)