Skip to content

fix: No Trace fix (#76) #31

fix: No Trace fix (#76)

fix: No Trace fix (#76) #31

Workflow file for this run

name: Publish Python 🐍 distributions πŸ“¦ to PyPI
on:
push:
tags:
- '*'
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install requirements and setup tools
run: >-
# Upgrade pip
python -m pip install --upgrade pip
# Install build deps
python -m pip install setuptools wheel
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v4
- name: Extract tag name
id: tag
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Update version in setup.py
run: >-
sed -i "s/\"0.0.0\"/\"${{ steps.tag.outputs.TAG_NAME }}\"/g" setup.py
- name: Build
run: >-
python setup.py sdist bdist_wheel
- name: Publish distribution πŸ“¦ to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}