Skip to content

Commit 1f43f48

Browse files
Anas NaouchiAnas Naouchi
authored andcommitted
Avoid expanding secrets in a run block.
1 parent aed329b commit 1f43f48

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ jobs:
1818
python-version: 3.9
1919

2020
- name: Build and Upload
21+
env:
22+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
2123
run: |
2224
python -m venv venv
2325
source venv/bin/activate
2426
pip install --upgrade pip twine wheel
2527
python setup.py sdist bdist_wheel
26-
twine upload dist/* --verbose --username __token__ --password ${{ secrets.PYPI_TOKEN }}
28+
twine upload dist/* --username __token__ --password "$PYPI_TOKEN"

0 commit comments

Comments
 (0)