Skip to content

Release

Release #1

Workflow file for this run

name: Release
on:
push:
tags:
- "*.*.*"
jobs:
pypi-release:
name: Release
runs-on: ubuntu-latest
environment:
name: Release
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
id: setup-python
with:
python-version: "3.11"
architecture: x64
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.8.2"
- name: Build project for distribution
run: poetry build -f wheel
- name: Publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: poetry publish