Skip to content

Commit

Permalink
Fix publish password in CI (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb authored Dec 19, 2023
1 parent 4cf3f52 commit 746e9b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ jobs:
- name: Publish scenarios [test pypi]
if: github.ref == 'refs/heads/main'
env:
PACKSE_PUBLISH_PASSWORD=: ${{ secrets.TEST_PYPI_API_TOKEN }}
PACKSE_PUBLISH_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
poetry run packse publish --skip-existing dist/*
4 changes: 3 additions & 1 deletion src/packse/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ def publish_package_distribution_with_retries(
retry_time = retry_time * RETRY_BACKOFF_FACTOR
attempts += 1
try:
publish_package_distribution(target, index_url, anonymous, dry_run)
publish_package_distribution(
target, index_url, anonymous=anonymous, dry_run=dry_run
)
except PublishAlreadyExists:
if not skip_existing:
raise
Expand Down

0 comments on commit 746e9b4

Please sign in to comment.