Skip to content

Publish Python package to PyPI #4

Publish Python package to PyPI

Publish Python package to PyPI #4

Workflow file for this run

---
name: Publish Python package to PyPI
on:
release:
types:
- published
jobs:
deploy:
runs-on: ubuntu-22.04
environment: release
permissions:
id-token: write
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install 'build[virtualenv]'
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1