Skip to content

0.3.22

0.3.22 #14

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.9"
uses: actions/setup-python@v2
with:
python-version: "3.9"
- 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@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}