Fixing PyPi publishing in main.yml

Change-Id: Iaef853a09755f41d875a3a426fe4d303baa2be73
This commit is contained in:
AndreaDAmico
2025-04-18 10:48:35 -04:00
parent 13a81e8f94
commit 51b266bd2a
2 changed files with 5 additions and 6 deletions

View File

@@ -55,8 +55,8 @@ jobs:
release-build:
runs-on: ubuntu-latest
needs: build
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository_owner == 'Telecominfraproject' }}
steps:
- uses: actions/checkout@v4
@@ -75,11 +75,10 @@ jobs:
name: release-dists
path: dist/
pypi-publish:
pypi-publish:
runs-on: ubuntu-latest
needs:
- release-build
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository_owner == 'Telecominfraproject' }}
permissions:
id-token: write
@@ -91,7 +90,7 @@ jobs:
path: dist/
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f
uses: pypa/gh-action-pypi-publish@release/v1
other-platforms:
name: Tests on other platforms

View File

@@ -1,9 +1,9 @@
[metadata]
name = gnpyapi
name = gnpy-api
description-file = README.md
description-content-type = text/markdown; variant=GFM
author = Telecom Infra Project
author-email = tbd
author-email = adamico@nec-labs.com
license = BSD-3-Clause
home-page = https://github.com/Telecominfraproject/oopt-gnpy-api
project_urls =