From b8499067f6be0848e5c920bcb266631bd0b0ad72 Mon Sep 17 00:00:00 2001 From: Edward-K1 Date: Fri, 27 Feb 2026 14:47:21 +0300 Subject: [PATCH] fix pypi trusted publisher auto deploy error --- .github/workflows/release.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a15bd0..ce6ed8d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,19 +8,35 @@ jobs: deploy: runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/validatedata + permissions: id-token: write + contents: write steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 with: python-version: "3.12" + - name: Install build dependencies run: | python -m pip install --upgrade pip pip install build + - name: Build package run: python -m build + - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 + + - name: Upload Binaries to GitHub Release + uses: softprops/action-gh-release@a06a81a + with: + files: dist/*