Skip to content

Commit 4d6a975

Browse files
authored
chore(release): provide tokens for testpypi and pypi (#350)
1 parent 73378b8 commit 4d6a975

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uv build
2424
- name: Publish package on PyPI
2525
if: ${{ inputs.release_enabled }}
26-
run: uv publish dist/*
26+
run: uv publish --username __token__ --password ${{secrets.PYPI_TOKEN}} dist/*
2727
- name: Publish the release notes
2828
if: ${{ inputs.release_enabled }}
2929
uses: release-drafter/release-drafter@v6

.github/workflows/test-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ jobs:
3131
run: |
3232
uv build
3333
- name: Publish package on TestPyPI
34-
run: uv publish --index testpypi dist/*
34+
run: uv publish --index testpypi --username __token__ --password ${{secrets.TEST_PYPI_TOKEN}}
35+
dist/*
3536
- name: Publish the release notes
3637
uses: release-drafter/release-drafter@v6
3738
with:

0 commit comments

Comments
 (0)