Skip to content

Commit 5f0a8cd

Browse files
committed
Upload non-release builds to Test PyPI/upload Clusters only to PyPI
1 parent 8d5aaab commit 5f0a8cd

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,15 @@ jobs:
9999
if: startsWith(github.ref, 'refs/tags/')
100100
env:
101101
TWINE_USERNAME: "__token__"
102-
TWINE_PASSWORD: ${{ secrets.TWINE_TOKEN }}
102+
TWINE_PASSWORD: ${{ secrets.TWINE_TOKEN_PYPI }}
103+
TWINE_REPOSITORY: "pypi"
104+
run: |
105+
python3 -m pip install twine build
106+
python3 -m twine upload out/controller/python/home_assistant_chip_clusters-${{ needs.build_prepare.outputs.version }}-py3-none-any.whl --skip-existing
107+
- name: Upload wheels to Test PyPI
108+
env:
109+
TWINE_USERNAME: "__token__"
110+
TWINE_PASSWORD: ${{ secrets.TWINE_TOKEN_TESTPYPI }}
103111
TWINE_REPOSITORY: "testpypi"
104112
run: |
105113
python3 -m pip install twine build

0 commit comments

Comments
 (0)