repo-to-text/.github/workflows/python-publish.yml
Kirill Markin ed22ae2458
Update dependencies and CI actions
Co-authored-by: Codex <codex@openai.com>
2026-07-29 04:49:14 +02:00

33 lines
689 B
YAML

name: Upload Python Package
on:
release:
types: [published]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.14'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}