Skip to content

Commit 8f37e0f

Browse files
committed
ci(release): normalize PyPI environment and gate verbose logs
Match the workflow environment name to the expected lowercase value and only enable verbose publishing logs during debug runs. This keeps the release job compatible with environment configuration while reducing noise in normal executions.
1 parent 676894c commit 8f37e0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template/.github/workflows/python-release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- build
4141
runs-on: ubuntu-latest
4242
environment:
43-
name: PyPI
43+
name: pypi
4444
url: https://pypi.org/project/${{ needs.build.outputs.package-name }}/${{ needs.build.outputs.package-version }}/
4545
steps:
4646
- name: Download artifacts
@@ -51,7 +51,7 @@ jobs:
5151
- name: Publish to PyPI
5252
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
5353
with:
54-
verbose: true
54+
verbose: ${{ runner.debug == '1' }}
5555
print-hash: true
5656
attestations: true
5757

0 commit comments

Comments
 (0)