Skip to content

Commit e67e5a9

Browse files
authoredNov 25, 2024··
Merge pull request #174 from jschlyter/pypa_update
Use modern pypi publishing tool
2 parents b682161 + 913a65f commit e67e5a9

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed
 

‎.github/workflows/release.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,17 @@ jobs:
88
pypi_release:
99
name: Build with Poetry and Publish to PyPI
1010
runs-on: ubuntu-latest
11+
environment:
12+
name: pypi
13+
url: https://pypi.org/p/cryptojwt
14+
permissions:
15+
id-token: write
1116
steps:
1217
- uses: actions/checkout@v4
1318
- uses: actions/setup-python@v5
1419
- name: Install and configure Poetry
15-
run: |
16-
pip install poetry
17-
poetry config pypi-token.pypi "${{ secrets.PYPI_TOKEN }}"
20+
run: pip install poetry
1821
- name: Publish package
19-
run: poetry publish --build
22+
run: poetry build
23+
- name: Publish package distributions to PyPI
24+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)
Please sign in to comment.