Skip to content

Commit db1dd4d

Browse files
committed
gh-actions: fix publishing
The new build matrix element introduced in de78cfa causes the Github Action to try to publish the package twice. This makes the second run fail with a 400 Bad Request in the publish step. This restricts the publishing just to the `test` build martrix element
1 parent 7d8bcb7 commit db1dd4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/tox.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
uses: pypa/gh-action-pypi-publish@master
3838
if: >-
3939
matrix.python-version == 3.9 &&
40+
matrix.tox-testenv == 'test' &&
4041
github.event_name == 'push' &&
4142
startsWith(github.event.ref, 'refs/tags')
4243
with:

0 commit comments

Comments
 (0)