Skip to content

Commit 50d3587

Browse files
Merge pull request #154 from Distributive-Network/Xmader/chore/fix-pypi-publish
CI: fix PyPI publishing
2 parents 5298258 + 40a7810 commit 50d3587

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/test-and-publish.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,11 @@ jobs:
189189
runs-on: ubuntu-20.04
190190
if: ${{ success() && github.event_name == 'push' && contains(github.ref, 'refs/tags/') }}
191191
steps:
192-
- uses: actions/checkout@v3
192+
# no need to checkout
193193
- uses: actions/setup-python@v4
194194
with:
195195
python-version: '3.9'
196-
- name: Setup Poetry
197-
uses: snok/install-poetry@v1
198-
with:
199-
version: 1.5.1
196+
- run: pip install twine
200197
- name: Download wheels built
201198
uses: actions/download-artifact@v3
202199
with:
@@ -205,8 +202,8 @@ jobs:
205202
- run: ls -lah ./dist/
206203
- name: Publish package
207204
run: |
208-
poetry publish \
209-
--no-interaction --skip-existing \
205+
twine upload dist/* \
206+
--non-interactive --skip-existing \
210207
--username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
211208
publish-nightly:
212209
# Implement a very basic Python package repository (https://peps.python.org/pep-0503/)

0 commit comments

Comments
 (0)