Skip to content

Merge branch 'main' into jerry/bump_version_0.6.38 #45

Merge branch 'main' into jerry/bump_version_0.6.38

Merge branch 'main' into jerry/bump_version_0.6.38 #45

name: Publish gpt-index to PyPI / GitHub
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
build-n-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Build source and wheel distributions
run: |
python -m pip install --upgrade build twine
PACKAGE_NAME_OVERRIDE=gpt_index python -m build
twine check --strict dist/*
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.GPT_INDEX_PYPI_TOKEN }}