Skip to content

Fix install poetry in workflows #1

Fix install poetry in workflows

Fix install poetry in workflows #1

Workflow file for this run

name: Publish package to PyPI
on:
push:
tags:
- '*.*.*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Add Poetry to path
run: echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
poetry install --with dev,docs
poetry run python -m spacy download en_core_web_sm
- run: poetry config pypi-token.pypi "${{ secrets.PYPI }}"
- name: Publish package
run: poetry publish --build