From d5e70ed79cad753f3c483684149648342abf565a Mon Sep 17 00:00:00 2001 From: Ragnor Comerford Date: Sat, 2 Nov 2024 16:21:27 +0000 Subject: [PATCH] Update Python publishing workflow --- .github/workflows/python-publish.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 6439225..164c39a 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -2,7 +2,7 @@ name: Publish Python package on: push: - branches: [ master ] + branches: [master] release: types: [created] @@ -14,12 +14,12 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: '3.9' - - name: Install Poetry - run: pip install poetry + python-version: "3.9" + - name: Install uv + run: pip install uv - name: Build and publish to PyPI env: PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} run: | - poetry build - poetry publish --username __token__ --password $PYPI_API_TOKEN + uv build --no-sources + uv publish --token $PYPI_API_TOKEN