mirror of
https://github.com/docling-project/docling-serve.git
synced 2026-04-26 11:25:37 +00:00
33 lines
884 B
YAML
33 lines
884 B
YAML
name: "Build and publish package"
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-and-publish:
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: pypi
|
|
url: https://pypi.org/p/docling-serve # Replace <package-name> with your PyPI project name
|
|
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:
|
|
enable-cache: true
|
|
- name: Install dependencies
|
|
run: uv sync --all-extras --no-extra cu124
|
|
- name: Build
|
|
run: uv build
|
|
- name: Publish distribution 📦 to PyPI
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
with:
|
|
# currently not working with reusable workflows
|
|
attestations: false
|