From b8497cf3446a8276d4ed09e7691bf455e13c91b6 Mon Sep 17 00:00:00 2001 From: breznak Date: Wed, 23 Aug 2023 20:14:11 +0200 Subject: [PATCH] try to upload twine wheels to PyPI on merge to master --- .github/workflows/build.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d85a0c1..d9dcd0e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,6 +38,12 @@ jobs: path: dist/ - name: Install twine run: python -m pip install twine + - name: Publishing to pypi + run: twine upload --skip-existing --disable-progress-bar dist/*.whl + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + macos: strategy: fail-fast: true @@ -76,8 +82,8 @@ jobs: with: name: wheels path: dist/ -# - name: Publishing to pypi -# run: twine upload --skip-existing --disable-progress-bar dist/*.whl -# env: -# TWINE_USERNAME: __token__ -# TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + - name: Publishing to pypi + run: twine upload --skip-existing --disable-progress-bar dist/*.whl + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} -- 2.45.2