Skip to content

Publish to PyPI

Publish to PyPI #2

Workflow file for this run

name: Publish to PyPI
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/milvus_beir
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install PDM
run: |
python -m pip install --upgrade pip
pip install pdm
- name: Build package
run: pdm build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1