Skip to content

Commit

Permalink
Always try pushing to pypy test
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Apr 2, 2024
1 parent a05f46a commit df0ce40
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/python-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
environment: pypi
permissions:
id-token: write
if: github.event_name == 'push' && github.ref_type == 'tag'
strategy:
matrix:
package:
Expand All @@ -61,8 +60,17 @@ jobs:
path: dist
merge-multiple: true

- uses: pypa/gh-action-pypi-publish@release/v1
if: startsWith(github.ref, 'refs/tags/${{ matrix.package }}-v')
- name: Publish to test instance of PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name != 'push' || github.ref_type != 'tag' ||
not(startsWith(github.ref, 'refs/tags/${{ matrix.package }}-v'))
with:
# TODO: Using a test endpoint
repository-url: https://test.pypi.org/legacy/

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'push' && github.ref_type == 'tag' &&
startsWith(github.ref, 'refs/tags/${{ matrix.package }}-v')
with:
# TODO: Use the real PyPI URL
repository-url: https://test.pypi.org/legacy/

0 comments on commit df0ce40

Please sign in to comment.