Skip to content

Build and Deploy to PyPI #5

Build and Deploy to PyPI

Build and Deploy to PyPI #5

name: Build and Deploy to PyPI
on: [workflow_dispatch]
jobs:
build_and_deploy:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Source Code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: make setup
- name: Build the Package
run: make build
- name: Verify the distribution
run: make verify
- name: Upload to PyPI
run: |
poetry config pypi-token.pypi ${{ secrets.TORCHDYNO_PYPI_TOKEN }}
poetry publish --skip-existing -vv --no-interaction