Skip to content

install only whl

install only whl #6

Workflow file for this run

name: Pip package
on:
push:
release:
types: [published]
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
poetry-version: ["1.7.1"]
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ./.github/actions/prepare
with:
python-version: ${{ matrix.python-version }}
poetry-version: ${{ matrix.poetry-version }}
- name: Build package
run: |
poetry build
- name: Install package (optional)
run: |
pip install --upgrade dist/*.whl
- name: Upload to PyPI
if: github.event_name == 'release'
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry publish --build -r pypi -u __token__ -p $PYPI_API_TOKEN --non-interactive