Skip to content

Commit 8ec2fe1

Browse files
Fix PyPI deployment and URL
1 parent f6cf1df commit 8ec2fe1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/python-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
runs-on: ubuntu-latest
8282
environment:
8383
name: pypi
84-
url: ${{ format('https://pypi.org/project/{0}', vars.PYPI_PROJECT_NAME || github.event.repository.name) }}
84+
url: ${{ format('https://pypi.org/project/{0}/{1}/', needs.build.outputs.project-name, needs.build.outputs.project-version) }}
8585
permissions:
8686
id-token: write
8787
steps:
@@ -90,5 +90,7 @@ jobs:
9090
with:
9191
name: release-dists
9292
path: dist/
93+
- name: Delete non-package artifacts
94+
run: rm -f -- dist/*.md dist/*.rst dist/*.txt
9395
- name: Publish to PyPI
9496
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)