Skip to content

Commit 1f1a292

Browse files
committed
Python publish workflow process fix
1 parent 42dad2f commit 1f1a292

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/python-publish.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,23 @@ on:
1212
jobs:
1313
publish:
1414
runs-on: ubuntu-latest
15+
permissions:
16+
id-token: write
1517
steps:
16-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1719

1820
- name: Set up Python
19-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@v5
2022
with:
2123
python-version: '3.x'
2224

2325
- name: Set up poetry
24-
uses: Gr1N/setup-poetry@v8
26+
uses: Gr1N/setup-poetry@v9
2527

2628
- name: Build
2729
run: poetry build
2830

2931
- name: Publish
30-
env:
31-
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
32-
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
33-
run: poetry publish
32+
uses: pypa/gh-action-pypi-publish@release/v1
33+
with:
34+
packages-dir: dist/

0 commit comments

Comments
 (0)