Skip to content

Commit 4e646d8

Browse files
authored
Update pypi_publish.yml
1 parent bce9ff1 commit 4e646d8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/pypi_publish.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ jobs:
6565
needs: [build-n-publish]
6666
runs-on: ubuntu-latest
6767
environment:
68-
name: pypi
69-
url: https://pypi.org/p/dwriteshapepy # Replace <package-name> with your PyPI project name
68+
name: pypi # Ensure this matches the environment name configured in PyPI
69+
url: https://pypi.org/project/dwriteshapepy/ # Corrected URL format for PyPI project page
7070
permissions:
71-
id-token: write # IMPORTANT: mandatory for trusted publishing
72-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
71+
id-token: write # Ensure this is set correctly for trusted publishing
72+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') # Corrected condition to check for tag format
7373
steps:
7474
- uses: actions/download-artifact@v4
7575
with:
@@ -83,5 +83,4 @@ jobs:
8383

8484
- name: Publish distribution 📦 to PyPI
8585
uses: pypa/gh-action-pypi-publish@release/v1
86-
8786

0 commit comments

Comments
 (0)