From 4481331bae82a6f9846422875f1c633d9a7f30d9 Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Wed, 6 Dec 2023 15:40:51 +0100 Subject: [PATCH] Update publish-to-test-pypi.yml --- .github/workflows/publish-to-test-pypi.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index b96a118..0cedd53 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -9,12 +9,17 @@ jobs: build-n-publish: name: Build and publish Python 🐍 distributions 📦 to TestPyPI runs-on: ubuntu-latest + environment: + name: pypi + url: https://test.pypi.org/p/djangocms-snippet + permissions: + id-token: write steps: - uses: actions/checkout@v4 - name: Set up Python 3.10 uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' - name: Install pypa/build run: >- @@ -34,7 +39,5 @@ jobs: - name: Publish distribution 📦 to Test PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - user: __token__ - password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ + repository-url: https://test.pypi.org/legacy/ skip_existing: true