Skip to content

Commit 0bdf856

Browse files
committed
Only publish from main branch to test PyPI
1 parent cc08424 commit 0bdf856

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/build.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ jobs:
123123
python3 -m twine upload out/controller/python/home_assistant_chip_core-${{ needs.build_prepare.outputs.version }}-cp37-abi3-manylinux_2_31_${{ matrix.arch.name }}.whl --skip-existing
124124
python3 -m twine upload out/controller/python/home_assistant_chip_repl-${{ needs.build_prepare.outputs.version }}-py3-none-any.whl --skip-existing
125125
- name: Upload wheels to Test PyPI
126+
if: ${{ github.ref == 'refs/heads/main' }}
126127
env:
127128
TWINE_USERNAME: "__token__"
128129
TWINE_PASSWORD: ${{ secrets.TWINE_TOKEN_TESTPYPI }}

0 commit comments

Comments
 (0)