Skip to content

chore(pypi.yml): update workflow to use Poetry for dependency managem… #2

chore(pypi.yml): update workflow to use Poetry for dependency managem…

chore(pypi.yml): update workflow to use Poetry for dependency managem… #2

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- 'v*'
jobs:
build-and-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry --version
- name: Install dependencies
run: poetry install --no-dev
- name: Build package
run: poetry build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/