mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-24 20:14:21 +01:00
36 lines
813 B
YAML
36 lines
813 B
YAML
name: Pip package
|
|
|
|
on:
|
|
push:
|
|
release:
|
|
types: [released]
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10"]
|
|
poetry-version: ["1.8.5"]
|
|
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
|
|
run: |
|
|
pip install --upgrade dist/*.whl
|
|
|
|
- name: Upload to PyPI on release
|
|
if: github.event_name == 'release' && github.event.action == 'released'
|
|
run: |
|
|
poetry publish -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}
|