Skip to content

Workflow file for this run

---
name: Publish python package
on:
release:
types: [created]
jobs:
tests:
uses: ./.github/workflows/tests.yml
publish_on_pypi:
runs-on: ubuntu-latest
needs: [tests]
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: pip
cache-dependency-path: '**/pyproject.toml'
- name: Install dependencies
run: |
pip install build
- name: Build
run: |
python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1