From 06227e9970e11e1ce780eb4b3fab082e71e02483 Mon Sep 17 00:00:00 2001 From: Michele Dolfi <97102151+dolfim-ibm@users.noreply.github.com> Date: Tue, 15 Apr 2025 08:59:16 +0200 Subject: [PATCH] ci: sign pypi packages (#1392) Signed-off-by: Michele Dolfi --- .github/workflows/pypi.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 395f34c..50fafbe 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -14,8 +14,17 @@ env: jobs: build-and-publish: runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/docling + permissions: + id-token: write # IMPORTANT: mandatory for trusted publishing steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup-poetry - name: Build and publish - run: poetry publish --build --no-interaction --username=__token__ --password=${{ secrets.PYPI_TOKEN }} + run: poetry build + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + attestations: true