File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
2+
3+ on : push
4+
5+ jobs :
6+ build-n-publish :
7+ name : Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@master
11+ - name : Set up Python 3.10 🐍🐍🐍
12+ uses : actions/setup-python@v1
13+ with :
14+ python-version : 3.10
15+ - name : Install poetry
16+ run : |
17+ python -m pip install poetry
18+ - name : Install dependencies through Poetry
19+ run : |
20+ python -m poetry install --with dev
21+ - name : Publish distribution 📦 to PyPI
22+ if : startsWith(github.event.ref, 'refs/tags')
23+ env :
24+ PYPI_TOKEN : ${{ secrets.pypi_deploy }}
25+ run : |
26+ poetry config pypi-token.pypi $PYPI_TOKEN
27+ poetry publish --build
You can’t perform that action at this time.
0 commit comments