Skip to content

Commit eff60a9

Browse files
committed
update CI config
1 parent 2eafa1b commit eff60a9

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
uses: actions/setup-python@v2
1515
with:
1616
python-version: '3.x'
17-
- name: Install dependencies
18-
run: |
19-
python -m pip install --upgrade pip
20-
pip install setuptools wheel twine
17+
- name: Set up Poetry
18+
uses: abatilo/[email protected]
19+
with:
20+
poetry-version: 1.1.5
2121
- name: Build
22-
run: python setup.py sdist bdist_wheel
22+
run: poetry build
2323
- name: Create release
2424
uses: actions/create-release@v1
2525
env:
@@ -40,6 +40,5 @@ jobs:
4040
release-tag: ${{ steps.get_version.outputs.version }}
4141
- name: Publish to PyPI
4242
env:
43-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
44-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
45-
run: twine upload dist/*
43+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
44+
run: poetry publish

0 commit comments

Comments
 (0)