File tree Expand file tree Collapse file tree 2 files changed +11
-22
lines changed
Expand file tree Collapse file tree 2 files changed +11
-22
lines changed Original file line number Diff line number Diff line change 1515 uses : actions/setup-python@v3
1616 - name : Install poetry
1717 run : python -m pip install poetry
18-
19- - name : Configure poetry
20- run : python -m poetry config virtualenvs.in-project true
21-
2218 - name : Cache the virtualenv
2319 id : cache-venv
2420 uses : actions/cache@v3
Original file line number Diff line number Diff line change @@ -2,26 +2,19 @@ name: Publish Python 🐍 distribution 📦 to PyPI
22
33on :
44 release :
5- types : [created ]
5+ types : [published ]
66
77jobs :
88 deploy :
9- runs-on : ubuntu-20.04
9+ runs-on : ubuntu-latest
1010
1111 steps :
12- - uses : actions/checkout@master
13- - name : Set up Python 3.7
14- uses : actions/setup-python@v2
15- with :
16- python-version : 3.7
17- - name : Install dependencies
18- run : |
19- python -m pip install --upgrade pip
20- pip install setuptools wheel twine
21- - name : Build and publish
22- env :
23- TWINE_USERNAME : __token__
24- TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
25- run : |
26- python setup.py sdist bdist_wheel
27- twine upload --skip-existing dist/*
12+ - name : Checkout
13+ uses : actions/checkout@v3
14+ - name : Install Python
15+ uses : actions/setup-python@v3
16+ - name : Install poetry
17+ run : python -m pip install poetry
18+ - run : poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}"
19+ - name : Publish package
20+ run : poetry publish --build
You can’t perform that action at this time.
0 commit comments