Skip to content

Commit f4360e8

Browse files
committed
pypi
1 parent 216f3af commit f4360e8

File tree

1 file changed

+26
-20
lines changed

1 file changed

+26
-20
lines changed

.github/workflows/pypi-publish.yml

+26-20
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,29 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v2
14-
15-
- name: Set up Python
16-
uses: actions/setup-python@v2
17-
with:
18-
python-version: 3.8
19-
20-
- name: Install dependencies
21-
run: |
22-
python -m pip install --upgrade pip
23-
pip install wheel
24-
- name: build a binary wheel dist
25-
run: |
26-
rm -fr dist
27-
python setup.py bdist_wheel sdist
28-
- name: Publish distribution 📦 to PyPI
29-
uses: pypa/[email protected]
30-
with:
31-
user: __token__
32-
password: ${{ secrets.pypi_password }}
13+
- uses: actions/checkout@v3
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: 3.9
19+
20+
- name: Install Poetry
21+
uses: snok/[email protected]
22+
with:
23+
virtualenvs-create: true
24+
virtualenvs-in-project: true
25+
26+
- name: Install dependencies
27+
run: poetry install --no-interaction
28+
29+
- name: Build source and wheel archives
30+
run: |
31+
poetry version $(git describe --tags --abbrev=0)
32+
poetry build
33+
34+
- name: Publish distribution 📦 to PyPI
35+
uses: pypa/[email protected]
36+
with:
37+
user: __token__
38+
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)