Skip to content

v3.13.0

v3.13.0 #73

Workflow file for this run

name: publish
on:
release:
types:
- created
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python "3.10"
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest build
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi
- name: Install
run: |
pip install .
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
- name: Build a binary wheel and a source tarball
run: |
python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}