Skip to content

Commit b94b6b4

Browse files
committed
workflows: pass twine secrets
1 parent 16f6c8e commit b94b6b4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
ls -lh "wheelhouse/"
4646
4747
- name: Upload to PyPi
48+
env:
49+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
50+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
4851
if: startsWith(github.ref, 'refs/tags/')
4952
run: |
5053
TWINE_NON_INTERACTIVE=1 twine upload wheelhouse/*.whl
@@ -90,6 +93,9 @@ jobs:
9093
ls -lh "dist/"
9194
9295
- name: Upload to PyPi
96+
env:
97+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
98+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
9399
if: startsWith(github.ref, 'refs/tags/')
94100
run: |
95101
TWINE_NON_INTERACTIVE=1 twine upload dist/*.whl
@@ -124,6 +130,9 @@ jobs:
124130
ls -lh "wheelhouse/"
125131
126132
- name: Upload to PyPi
133+
env:
134+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
135+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
127136
if: startsWith(github.ref, 'refs/tags/')
128137
run: |
129138
TWINE_NON_INTERACTIVE=1 twine upload wheelhouse/*.whl
@@ -172,6 +181,9 @@ jobs:
172181
ls "dist/"
173182
174183
- name: Upload to PyPi
184+
env:
185+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
186+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
175187
if: startsWith(github.ref, 'refs/tags/')
176188
run: |
177189
TWINE_NON_INTERACTIVE=1 twine upload dist/*.whl

0 commit comments

Comments
 (0)