From b85530861218418dfab3485821dfe973921fdb1d Mon Sep 17 00:00:00 2001 From: llegregam Date: Thu, 2 Nov 2023 16:45:31 +0100 Subject: [PATCH] deployment file fix --- .github/workflows/pypi_deployment.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pypi_deployment.yml b/.github/workflows/pypi_deployment.yml index b4de5b4..2e34ba8 100644 --- a/.github/workflows/pypi_deployment.yml +++ b/.github/workflows/pypi_deployment.yml @@ -7,9 +7,14 @@ on: - v* jobs: - build: + build-n-publish: name: Build and publish Python 🐍 distributions 📦 to PyPI runs-on: ubuntu-latest + environment: + name: pypi + url: https://https://pypi.org/project/IsoCor/ + permissions: + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing steps: - uses: actions/checkout@master - name: Set up Python 3.9 @@ -29,15 +34,5 @@ jobs: --sdist --wheel --outdir dist/ - pypi-publish: - name: Publish distribution 📦 to PyPI - runs-on: ubuntu-latest - environment: - name: pypi - url: https://https://pypi.org/project/IsoCor/ - permissions: - id-token: write # IMPORTANT: this permission is mandatory for trusted publishing - steps: - # retrieve your distributions here - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1