Skip to content

Commit c58596a

Browse files
authored
Merge pull request #144 from p1c2u/fix/python-publish-workflow-fix
Python publish workflow process fix
2 parents 2e6ec6d + ed05311 commit c58596a

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@v2
18+
- uses: actions/checkout@v4
1719

1820
- name: Set up Python
19-
uses: actions/setup-python@v2
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)