Skip to content

Commit a7c9fcc

Browse files
authored
Merge pull request #125 from Wenzel/ci/publish_poetry
ci: fix publish with poetry
2 parents 60b764c + 9b4c8c5 commit a7c9fcc

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -144,19 +144,12 @@ jobs:
144144
steps:
145145
- uses: actions/checkout@v3
146146

147-
- name: Set up Python 3.7 🐍
148-
uses: actions/setup-python@v1
149-
with:
150-
python-version: '3.7'
147+
- uses: ./.github/actions/common-setup
151148

152-
- name: Build 🔨
153-
run: |
154-
python -m pip install wheel
155-
python setup.py sdist
156-
python setup.py bdist_wheel
149+
- name: Build package
150+
run: poetry build
157151

158152
- name: Publish on PyPI 🚀
159-
uses: pypa/[email protected]
160-
with:
161-
user: __token__
162-
password: ${{ secrets.ACCESS_TOKEN }}
153+
run: poetry publish
154+
env:
155+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.ACCESS_TOKEN }}

0 commit comments

Comments
 (0)