diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a18aa50..e3cdadd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,9 +72,7 @@ jobs: if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') runs-on: ubuntu-latest # Specifying a GitHub environment is optional, but strongly encouraged - environment: - name: release - url: https://pypi.org/project/koheesio/ + environment: release permissions: # IMPORTANT: this permission is mandatory for trusted publishing id-token: write @@ -85,9 +83,6 @@ jobs: with: name: python-artifacts path: dist - - - name: Install Hatch - uses: pypa/hatch@install - - - name: Publish package to PyPI - run: hatch publish --yes --no-prompt \ No newline at end of file + + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file