Skip to content

Publish to PyPI

Publish to PyPI #2

name: CLI Docker Image
on:
release:
types: [published]
permissions:
contents: read
packages: write
jobs:
publish:
name: Publish to PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build the package
run: python -m build --outdir CLI/dist CLI
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}