Skip to content

Commit

Permalink
Use uv publish instead of uvx twine
Browse files Browse the repository at this point in the history
  • Loading branch information
jond01 committed Nov 2, 2024
1 parent c651ddc commit af74fde
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
runs-on: ubuntu-latest
env:
PYPI_PUBLISH: true
FORCE_COLOR: 1
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -30,14 +31,12 @@ jobs:
with:
version: ${{ steps.uv-version.outputs.version }}
- name: Build the package
env:
FORCE_COLOR: 1
run: uv build
run: uv build --no-sources
- name: Publish the package
env:
TWINE_PASSWORD: ${{ inputs.repository == 'pypi' && secrets.PYPI_TOKEN || secrets.TEST_PYPI_TOKEN }}
TWINE_REPOSITORY: ${{ inputs.repository }}
run: uvx twine upload dist/*
UV_PUBLISH_TOKEN: ${{ inputs.repository == 'pypi' && secrets.PYPI_TOKEN || secrets.TEST_PYPI_TOKEN }}
UV_PUBLISH_URL: ${{ inputs.repository }}
run: uv publish
- name: Upload source and wheel distributions
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit af74fde

Please sign in to comment.