diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index c30f3c64f..bf3ae8d25 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -13,7 +13,7 @@ jobs: build-and-publish: name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags') && ${{ github.ref_name == 'main' }} && ${{ github.event.workflow_run.conclusion == 'success' }} + if: startsWith(github.ref, 'refs/tags') && (github.ref_name == 'main') && (github.event.workflow_run.conclusion == 'success') steps: - name: Checkout uses: actions/checkout@v3 @@ -28,11 +28,6 @@ jobs: pip install wheel build - name: Build a binary wheel and a source tarball run: python setup.py sdist bdist_wheel - - name: Create Wheel Artifacts - uses: actions/upload-artifact@v3 - with: - path: "dist/*.whl" - retention-days: 7 - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: