Skip to content

Commit

Permalink
Use twine for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Dec 4, 2024
1 parent b82610b commit b4cbe19
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish_on_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,14 @@ jobs:
git push
- name: Publish to PyPI
env:
PYPI_USERNAME: __token__
PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
rm -rf dist/* || true
uv build --sdist --wheel
uv publish
uv build --sdist --wheel --no-sources
# uv publish
uvx twine upload dist/*.whl dist/*.tar.gz -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} --skip-existing
- name: Report status
uses: actions/github-script@v7
with:
Expand Down

0 comments on commit b4cbe19

Please sign in to comment.