Skip to content

Commit

Permalink
ci: allow publishing test releases from branches
Browse files Browse the repository at this point in the history
  • Loading branch information
vlaci committed Feb 4, 2025
1 parent 9bf34c4 commit a9ba9b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ jobs:
subject-path: dist/*

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

0 comments on commit a9ba9b6

Please sign in to comment.