Skip to content

#446: Restored instrumentation that had been removed due to conflicts… #1279

#446: Restored instrumentation that had been removed due to conflicts…

#446: Restored instrumentation that had been removed due to conflicts… #1279

name: Publish Python package to PyPi
on: push
jobs:
build-n-publish:
name: Build and publish Python Package to PyPi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install build
run: |
python -m pip install build --user
- name: Build a binary wheel and a source tarball
run: |
python -m build --sdist --wheel --outdir dist/ .
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true
print-hash: true