Skip to content

Publish to PyPI

Publish to PyPI #1

Workflow file for this run

---
name: Publish to PyPI
on:
release:
types: [published]
workflow_dispatch:
jobs:
test:
uses: ./.github/workflows/unittests.yml
publish:
needs: test
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout tag
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install build
run: python -m pip install build
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1