Skip to content

fix dataset list key error (#279) #296

fix dataset list key error (#279)

fix dataset list key error (#279) #296

name: Release Python Package
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "pyproject.toml"
jobs:
upload_package:
name: Upload package to PyPi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v4
- name: Install dependencies
env:
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring
run: |
pip install twine poetry==1.2.2
poetry install
- name: Create source distribution
run: poetry build
- name: Upload to PyPi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_COHERE_API_KEY_RISK_653 }}
run: |
twine upload --repository pypi dist/*