Skip to content

Deploy to PyPI 🚀

Deploy to PyPI 🚀 #3

Workflow file for this run

name: Deploy to PyPI 🚀
on:
push:
tags:
- 'v*'
jobs:
lint:
uses: ./.github/workflows/lint.yml
tests:
uses: ./.github/workflows/tests.yml
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
release:
runs-on: ubuntu-latest
needs: [lint, tests]
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/[email protected]
with:
python-version: '3.10'
- name: Build wheel and source tarball
run: |
pip install wheel
pip install twine
python setup.py sdist bdist_wheel
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
repository-url: https://upload.pypi.org/legacy/