Skip to content

Commit

Permalink
Restrict pypi upload to python 3.10.
Browse files Browse the repository at this point in the history
  • Loading branch information
tillahoffmann committed Jan 6, 2023
1 parent a38167b commit 159e95d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ jobs:
python setup.py bdist_wheel
twine check dist/*
- name: Publish the package to pypi
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository_owner == 'testcontainers'
if: >
github.event_name == 'push'
&& github.ref == 'refs/heads/master'
&& github.repository_owner == 'testcontainers'
&& matrix.python-version == '3.10'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
Expand Down

0 comments on commit 159e95d

Please sign in to comment.