Skip to content

Commit 552fa66

Browse files
Use correct token publishing workflow for poetry
See discussion at python-poetry/poetry#7940 (comment)
1 parent 1f58f9d commit 552fa66

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/publish.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,27 @@ jobs:
1010
runs-on: ubuntu-latest
1111
environment: pypi
1212
permissions:
13+
contents: read
1314
id-token: write
1415
steps:
1516
- uses: actions/checkout@v2
17+
1618
- name: Set up Python
1719
uses: actions/setup-python@v2
1820
with:
1921
python-version: '3.10'
22+
2023
- name: Install dependencies
2124
run: |
2225
pip install poetry
23-
- name: Build and publish
26+
27+
- name: Build
28+
run: poetry build
29+
30+
- name: Mint pypi publisher token
31+
id: pypi-token
32+
uses: tsch/[email protected]
33+
34+
- name Publish
2435
run: |
25-
poetry build
26-
poetry publish
36+
poetry publish -u __token__ -p '${{ steps.pypi-token.outputs.api-token }}'

0 commit comments

Comments
 (0)