Skip to content

Merge pull request #24 from ZennoLab/CML-1905 #16

Merge pull request #24 from ZennoLab/CML-1905

Merge pull request #24 from ZennoLab/CML-1905 #16

Workflow file for this run

name: publish to PyPi and TestPyPi
on:
push:
branches:
- main
jobs:
deploy:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build --sdist --wheel --outdir dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}