Retry on pair() exceptions (#30) #94
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to PyPI | |
on: push | |
jobs: | |
build-n-publish: | |
name: Build and publish to PyPI and TestPyPI | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up Python | |
uses: actions/setup-python@main | |
with: | |
python-version: "3.11" | |
- name: Install needed packages | |
run: >- | |
python -m pip install --upgrade build twine | |
- name: Build binary wheel | |
run: >- | |
python3 -m build | |
- name: Publish to Test PyPI | |
continue-on-error: true | |
run: >- | |
python3 -m twine upload | |
-u __token__ | |
-p ${{ secrets.TEST_PYPI_API_TOKEN }} | |
--repository testpypi | |
dist/* | |
- name: Publish to PyPI | |
if: startsWith(github.ref, 'refs/tags') | |
run: >- | |
python3 -m twine upload | |
-u __token__ | |
-p ${{ secrets.PYPI_API_TOKEN }} | |
dist/* |