Skip to content

v0.5.2

v0.5.2 #31

Workflow file for this run

name: Publish to PyPI
on:
release:
types: [ published ]
branches: [ master ]
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
- name: Install poetry and dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry self add "poetry-dynamic-versioning[plugin]"
- name: Configure poetry
env:
pypi_token: ${{ secrets.PyPI_TOKEN }}
run: poetry config pypi-token.pypi $pypi_token
- name: Build and publish
run: poetry publish --build