diff --git a/.github/workflows/publish-gaarf-py.yaml b/.github/workflows/publish-gaarf-py.yaml index 5f1107c..30935f5 100644 --- a/.github/workflows/publish-gaarf-py.yaml +++ b/.github/workflows/publish-gaarf-py.yaml @@ -1,7 +1,8 @@ name: Publish Python package to PyPI -on: push - +on: + push: + tags: [ "*-py" ] jobs: build: name: Build distribution @@ -25,12 +26,11 @@ jobs: uses: actions/upload-artifact@v4 with: name: python-package-distributions - path: py/dist/ + path: dist/ publish-to-pypi: name: >- Publish Python package to PyPI - if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes needs: - build runs-on: ubuntu-latest @@ -45,6 +45,6 @@ jobs: uses: actions/download-artifact@v4 with: name: python-package-distributions - path: py/dist/ + path: dist/ - name: Publish package to PyPI uses: pypa/gh-action-pypi-publish@release/v1