Skip to content

Fix pypi release

Fix pypi release #33

Workflow file for this run

name: Run Tests and Release to PyPi
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
test:
uses: ./.github/workflows/run_tests.yml
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools_scm[toml]>=3.4 setuptools>=42 wheel twine>=3.3.0
- name: Build
run: |
python setup.py sdist bdist_wheel
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload --skip-existing dist/*