Skip to content

Upload Python Package with Poetry #2

Upload Python Package with Poetry

Upload Python Package with Poetry #2

Workflow file for this run

# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Upload Python Package with Poetry
on:
release:
types: [published]
permissions:
contents: read
jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
poetry-version: ["1.6.1"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Publish to PyPi
run: poetry publish --build --username __token__ --password ${{ secrets.PYPI_API_BED2IDT }}