diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 1c3bda6..b9ea683 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -1,8 +1,5 @@ name: Publish to PyPI -on: - push: - tags: - - 'v[0-9]+.[0-9]+.[0-9]+' +on: [push] jobs: pypi-publish: name: Upload release to PyPI @@ -13,7 +10,13 @@ jobs: permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing steps: - # retrieve your distributions here - - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.9 + - name: Install the project dependencies + run: poetry install + - name: Build package + run: poetry build + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file