Skip to content

Commit bdb87c8

Browse files
authored
Merge pull request #1098 from onekey-sec/fix-release
Fix release
2 parents 064e1ad + a9ba9b6 commit bdb87c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/CI.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ jobs:
443443
steps:
444444
- uses: actions/download-artifact@v4
445445
with:
446-
pattern: wheel-*
446+
pattern: wheels-*
447447
path: dist
448448
merge-multiple: true
449449

@@ -453,7 +453,7 @@ jobs:
453453
subject-path: dist/*
454454

455455
- name: Publish to PyPI
456-
if: ${{ startsWith(github.ref, 'refs/tags/') }}
456+
if: ${{ startsWith(github.ref, 'refs/tags/') }} || (github.event_name == 'workflow_dispatch' && github.event.inputs.test_release)
457457
uses: PyO3/maturin-action@v1
458458
env:
459459
MATURIN_PYPI_TOKEN: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.test_release && secrets.TEST_PYPI_API_TOKEN || secrets.POETRY_PYPI_TOKEN_PYPI }}

0 commit comments

Comments
 (0)