Merge pull request #7 from VIGINUM-FR/ci-disable-testpypi-releases

fix: disable automatic releases to test.pypi.org
Этот коммит содержится в:
Viginum-DataScientist-1 2025-07-29 15:15:13 +02:00 коммит произвёл GitHub
родитель 8979129306 c7107aae1d
Коммит eb1599ee10
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194

28
.github/workflows/publish-to-pypi.yml поставляемый
Просмотреть файл

@ -1,5 +1,5 @@
# derived from https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#the-whole-ci-cd-workflow # derived from https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#the-whole-ci-cd-workflow
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI name: Publish Python 🐍 distribution 📦 to PyPI
on: push on: push
@ -115,28 +115,4 @@ jobs:
run: >- run: >-
gh release upload gh release upload
"$GITHUB_REF_NAME" dist/** "$GITHUB_REF_NAME" dist/**
--repo "$GITHUB_REPOSITORY" --repo "$GITHUB_REPOSITORY"
publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
needs:
- build
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/d3lta # pypi is case insensitive so d3lta == D3lta
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/