Skip to content

Commit c38ce86

Browse files
committed
fix: Add PyPI API tokens to publish workflow
1 parent c978594 commit c38ce86

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ jobs:
105105
with:
106106
repository-url: https://test.pypi.org/legacy/
107107
skip-existing: true
108+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
108109

109110
publish-pypi:
110111
if: github.event_name == 'release'
@@ -122,4 +123,6 @@ jobs:
122123
path: dist/
123124

124125
- name: Publish to PyPI
125-
uses: pypa/gh-action-pypi-publish@release/v1
126+
uses: pypa/gh-action-pypi-publish@release/v1
127+
with:
128+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)