Skip to content

Commit c641aee

Browse files
author
Noah
authored
chore: only publish to test pypi on dry run, close #497 (#498)
* chore: only publish to test pypi on dry run
1 parent 623f1df commit c641aee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/cicd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
- name: Dry Release
9292
if: github.event_name == 'pull_request'
9393
env:
94-
TWINE_USERNAME: _token_
94+
TWINE_USERNAME: __token__
9595
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PUBLISH_TOKEN }}
9696
run: |
9797
. $VENV/bin/activate
@@ -129,7 +129,7 @@ jobs:
129129
run: . script/bootstrap
130130
- name: Release
131131
env:
132-
TWINE_USERNAME: _token_
132+
TWINE_USERNAME: __token__
133133
TWINE_PASSWORD: ${{ secrets.PYPI_PUBLISH_TOKEN }}
134134
run: |
135135
. $VENV/bin/activate

tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def release(ctx, dry_run=True):
168168
should_publish_to_pypi = False
169169

170170
# publish to test to verify builds
171-
if not dry_run:
171+
if dry_run:
172172
publish(ctx, dry_run=True)
173173

174174
# publish to pypi if test succeeds

0 commit comments

Comments
 (0)