Skip to content

Publish Python Package #6

Publish Python Package

Publish Python Package #6

Workflow file for this run

name: Publish Python Package
on:
workflow_dispatch:
push:
tags:
- "*"
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/open-text-embeddings
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools
- name: Build source distribution
run: |
python setup.py sdist
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1