Skip to content

publish to PyPI 🐍 #12

publish to PyPI 🐍

publish to PyPI 🐍 #12

Workflow file for this run

name: publish to PyPI 🐍
on: release
jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: publish_to_pypi
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: build package distributions
run: poetry build
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1