Skip to content

Publish pip on PyPi

Publish pip on PyPi #7

Workflow file for this run

name: Publish pip on PyPi
on: workflow_dispatch
jobs:
publish-to-production-pypi:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ "3.9" ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install poetry
- name: Publish to production PyPI
run: |
poetry version $(git describe --tags --abbrev=0)
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish --build