File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ name: Publish Python 🐍 distribution 📦 to PyPI
3
3
on :
4
4
release :
5
5
types : [created]
6
-
6
+ permissions :
7
+ id-token : write
7
8
jobs :
8
9
tests :
9
10
name : Linting and running tests
54
55
make replace_version version=${TAG_NAME#v}
55
56
- name : Download binaries & build
56
57
run : make build
57
- - name : Publish to PyPI
58
- env :
59
- POETRY_HTTP_BASIC_PYPI_USERNAME : __token__
60
- POETRY_HTTP_BASIC_PYPI_PASSWORD : ${{ secrets.PYPI_TOKEN }}
61
- run : |
62
- poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
63
- poetry publish --build
58
+ - name : Publish package distributions to PyPI
59
+ uses : pypa/gh-action-pypi-publish@release/v1
64
60
- name : Store the distribution packages
65
61
uses : actions/upload-artifact@v3
66
62
with :
You can’t perform that action at this time.
0 commit comments