Skip to content

Commit c65352b

Browse files
committed
Fix publishing workflows so they won't publish to pypi for the template repo
1 parent d87fc58 commit c65352b

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ jobs:
122122
with:
123123
subject-path: dist/*
124124
- name: Publish to PyPI
125+
if: github.repository_id != 1226495532 # Skip PyPI for the template repo itself
125126
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14
126127
with:
127128
packages-dir: dist/

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383
with:
8484
subject-path: dist/*
8585
- name: Publish to PyPI
86+
if: github.repository_id != 1226495532 # Skip PyPI for the template repo itself
8687
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14
8788
with:
8889
packages-dir: dist/

0 commit comments

Comments
 (0)