From f750d57d6406ea7eaace10c83bd498218a463703 Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Wed, 6 Dec 2023 15:42:17 +0100 Subject: [PATCH] Update publish-to-live-pypi.yml --- .github/workflows/publish-to-live-pypi.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-to-live-pypi.yml b/.github/workflows/publish-to-live-pypi.yml index eab3f1a..84db02b 100644 --- a/.github/workflows/publish-to-live-pypi.yml +++ b/.github/workflows/publish-to-live-pypi.yml @@ -9,12 +9,17 @@ jobs: build-n-publish: name: Build and publish Python 🐍 distributions 📦 to pypi runs-on: ubuntu-latest + environment: + name: pypi + url: https://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,6 +39,3 @@ jobs: - name: Publish distribution 📦 to PyPI if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }}