📝 fix scikit-learn version #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Python Package | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
build-and-publish: | |
name: Build and Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
echo "export PATH=\"$HOME/.local/bin:$PATH\"" >> $GITHUB_ENV | |
- name: Install dependencies | |
run: poetry install --no-interaction --no-ansi | |
- name: Build the package | |
run: poetry build | |
- name: Publish to PyPI | |
env: | |
TWINE_API_TOKEN: ${{ secrets.PYPI_TOKEN }} | |
run: | | |
poetry config pypi-token.pypi $TWINE_API_TOKEN | |
poetry publish --no-interaction --no-ansi |