Skip to content

0.0.628

0.0.628 #52

Workflow file for this run

name: Publish
on:
workflow_dispatch:
release:
types: [published]
jobs:
build-n-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
env:
name: pypi
url: https://pypi.org/p/literalai
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
with:
ref: main
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies and build
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python setup.py sdist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist
password: ${{ secrets.PYPI_API_TOKEN }}