Skip to content

Commit

Permalink
fix: publish needs full credentials not only token (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
laudmt authored Nov 6, 2024
1 parent 90b4635 commit 2f76886
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ jobs:
uv run coverage run -m pytest
uv run coverage xml
- name: Upload coverage to Codecov
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
fail_ci_if_error: true
# Deactivate until we have a Codecov account
# - name: Upload coverage to Codecov
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
# uses: codecov/codecov-action@v3
# with:
# files: ./coverage.xml
# fail_ci_if_error: true
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
# Build and publish
- name: Build and publish
env:
UV_PUBLISH_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
UV_PUBLISH_USERNAME: ${{ secrets.PYPI_USERNAME }}
UV_PUBLISH_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
uv build
uv publish

0 comments on commit 2f76886

Please sign in to comment.