mirror of
https://github.com/docling-project/docling-core.git
synced 2026-11-18 20:27:00 +00:00
* use new pyproject.toml format with uv Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * update ci/cd scripts Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * update MD files Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * build without pre-commit cache Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * run pre-commit from uv Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * small changes Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * add uv package install Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * Apply suggestions from code review Co-authored-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com> Signed-off-by: Michele Dolfi <97102151+dolfim-ibm@users.noreply.github.com> * docs: update README Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> --------- Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> Signed-off-by: Michele Dolfi <97102151+dolfim-ibm@users.noreply.github.com> Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> Co-authored-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com> Co-authored-by: Panos Vagenas <pva@zurich.ibm.com>
36 lines
877 B
YAML
36 lines
877 B
YAML
name: "Build and publish package"
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-and-publish:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.12']
|
|
environment:
|
|
name: pypi
|
|
url: https://pypi.org/p/docling-core
|
|
permissions:
|
|
id-token: write # IMPORTANT: mandatory for trusted publishing
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install uv and set the python version
|
|
uses: astral-sh/setup-uv@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
enable-cache: true
|
|
- name: Install dependencies
|
|
run: uv sync --all-extras
|
|
- name: Build package
|
|
run: uv build
|
|
- name: Publish distribution 📦 to PyPI
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
with:
|
|
attestations: true
|