Skip to content

Commit 4723d2d

Browse files
ejfineclaude
andcommitted
Wrap pypi environment block in PyPI-only conditional
Same fix as publish-to-staging: emit the publish-to-primary environment name/URL only when python_package_registry is PyPI, so AWS CodeArtifact deployments don't get a misleading pypi environment. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent cac4b87 commit 4723d2d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎template/.github/workflows/release.yaml.jinja‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,10 @@ jobs:
254254
- create-tag
255255
- guard
256256
timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %}
257-
runs-on: {% endraw %}{{ gha_linux_runner }}{% raw %}
257+
runs-on: {% endraw %}{{ gha_linux_runner }}{% if python_package_registry == "PyPI" %}{% raw %}
258258
environment:
259259
name: pypi
260-
url: https://pypi.org/p/{% endraw %}{{ package_name | replace('_', '-') }}{% raw %}
260+
url: https://pypi.org/p/{% endraw %}{{ package_name | replace('_', '-') }}{% endif %}{% raw %}
261261
permissions:
262262
attestations: write
263263
id-token: write

0 commit comments

Comments
 (0)