diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index c1671abc4..88a134731 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -1,5 +1,4 @@ -# This workflow will upload a Python Package using Twine when a release is created -# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries +# This workflow will upload a Python Package using Hatch when a release is created name: Publish Python Package @@ -20,12 +19,11 @@ jobs: python-version: '3.x' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine + pipx install hatch - name: Build and publish env: - TWINE_USERNAME: ${{ secrets.PACKAGE_API_ID }} - TWINE_PASSWORD: ${{ secrets.PACKAGE_API_SECRET }} + HATCH_INDEX_USER: ${{ secrets.PACKAGE_API_ID }} + HATCH_INDEX_AUTH: ${{ secrets.PACKAGE_API_SECRET }} run: | - python setup.py sdist bdist_wheel - twine upload dist/* + hatch build + hatch publish