Skip to content

Commit 350b6c7

Browse files
committed
Update PyPI deployment
Clean up ref_type check and add specific release URL
1 parent 59ec797 commit 350b6c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,10 @@ jobs:
315315
publish:
316316
needs: [sdist, build, build-macos, linux-wheels]
317317
runs-on: ubuntu-latest
318-
if: startsWith(github.ref, 'refs/tags/')
318+
if: github.ref_type == 'tag'
319319
environment:
320-
name: release
321-
url: https://pypi.org/project/tcod/
320+
name: pypi
321+
url: https://pypi.org/project/tcod/${{ github.ref_name }}
322322
permissions:
323323
id-token: write
324324
steps:

0 commit comments

Comments
 (0)