Skip to content

Bump to 2.6.1 (#29) #91

Bump to 2.6.1 (#29)

Bump to 2.6.1 (#29) #91

Workflow file for this run

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/*