Skip to content

Publish to PyPI

Publish to PyPI #45

Workflow file for this run

name: Publish to PyPI
on:
workflow_dispatch
jobs:
build-n-publish:
if: ${{ github.repository == 'noqdev/iambic' }}
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: bootstrap
run: |
pip install poetry setuptools pip --upgrade
- run: poetry config pypi-token.pypi "${{ secrets.IAMBIC_PYPI_API_KEY }}"
- name: Publish package
run: poetry publish --build