Skip to content

Release to PyPi.org #37

Release to PyPi.org

Release to PyPi.org #37

Workflow file for this run

name: Release to PyPi.org
on:
release:
types: [published]
jobs:
publish:
strategy:
fail-fast: false
matrix:
python-version: [3.11]
poetry-version: [1.7.1]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build