Skip to content

Commit 50d4c9e

Browse files
committed
Id-token write for pypi
1 parent 8294298 commit 50d4c9e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
url: https://pypi.org/p/dapi
1313
permissions:
1414
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
15+
contents: read # Required for checkout
1516
steps:
1617
- uses: actions/checkout@v3
1718
- uses: actions/setup-python@v4
@@ -25,3 +26,8 @@ jobs:
2526
run: poetry build
2627
- name: Publish package distributions to PyPI
2728
uses: pypa/gh-action-pypi-publish@release/v1
29+
with:
30+
# Add retry mechanism for transient failures
31+
retry-on-failure: true
32+
# Enable verbose logging for debugging
33+
verbose: true

0 commit comments

Comments
 (0)